{
  "capability_id": "math.ln",
  "tool_id": "ln",
  "engine": "ln",
  "calculation_version": "1.0.4",
  "generated_at": "2026-09-16T22:03:43.776Z",
  "engine_build": "2026-09-10",
  "test_count": 23,
  "passed": 23,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 11,
      "passed": 11
    },
    "boundary": {
      "total": 12,
      "passed": 12
    },
    "property": {
      "total": 0,
      "passed": 0
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/math/ln",
  "api": "https://www.calculatorx.com/api/v1/calc/ln",
  "schema_input": "https://www.calculatorx.com/schemas/math.ln.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.ln.output.json",
  "assumptions": [
    "Real arithmetic; argument x > 0. Base is e, not 10.",
    "On many calculators log means log₁₀; in some programming languages log(x) means ln(x).",
    "Published engine is y = ln(x). A legacy y query parameter is ignored and stripped from the address bar. Inverse x = e^y is Antilog with base e."
  ],
  "limitations": [
    "Real ln only: x > 0 → INVALID_ARGUMENT when x ≤ 0",
    "Missing x → MISSING_REQUIRED_INPUT; non-finite → INVALID_NUMBER"
  ],
  "boundary_conditions": [
    "Missing x returns MISSING_REQUIRED_INPUT.",
    "x ≤ 0 returns INVALID_ARGUMENT (real ln is undefined).",
    "x = 1 returns 0 (exact). The token e and the binary64 constant Math.E return 1 with the exact display flag; Math.E is a rounded approximation of the mathematical constant e, not an exact representation.",
    "0 < x < 1 yields a negative result (for example ln(0.5) = −ln(2)).",
    "For every finite x > 0 in binary64, y = ln(x) is finite (about −744 < y < 710). Domain errors use INVALID_ARGUMENT; the engine does not return Infinity for valid positive finite inputs."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Logarithm, Exponential, Powers",
      "url": "https://dlmf.nist.gov/4",
      "supports": "Natural logarithm as the inverse of the exponential; ln(x)=y ⇔ e^y=x",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §4.2",
      "section": "Logarithm: definitions and inverse of the exponential",
      "url": "https://dlmf.nist.gov/4.2",
      "supports": "e^(ln x) = x and ln(e^y) = y for real x > 0",
      "kind": "reference"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Natural logarithm base e; real argument x > 0",
      "supports": "This page is ln only. Common log is the Log calculator; inverse is Antilog with base e.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:61a83a4f0bd289e5279485b0066d05c06eede305d63e15a9444869c77b4fed0e",
  "tests": [
    {
      "id": "ln-1",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1
      },
      "expect": 0,
      "expectWarning": null,
      "actual": {
        "y": 0,
        "value": 0,
        "verification": {
          "expression": "exp(result)",
          "value": 1,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "ln-e",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": "e"
      },
      "expect": 1,
      "expectWarning": null,
      "actual": {
        "y": 1,
        "value": 1,
        "verification": {
          "expression": "exp(result)",
          "value": 2.718281828459045,
          "passed": true
        },
        "exact": true
      },
      "tol": 1e-12
    },
    {
      "id": "ln-2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 2
      },
      "expect": 0.6931471805599453,
      "expectWarning": null,
      "actual": {
        "y": 0.6931471805599453,
        "value": 0.6931471805599453,
        "verification": {
          "expression": "exp(result)",
          "value": 2,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "ln-10",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 10
      },
      "expect": 2.302585092994046,
      "expectWarning": null,
      "actual": {
        "y": 2.302585092994046,
        "value": 2.302585092994046,
        "verification": {
          "expression": "exp(result)",
          "value": 10.000000000000002,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "ln-10-pack",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 10
      },
      "expect": {
        "y": 2.302585092994046,
        "value": 2.302585092994046
      },
      "expectWarning": null,
      "actual": {
        "y": 2.302585092994046,
        "value": 2.302585092994046,
        "verification": {
          "expression": "exp(result)",
          "value": 10.000000000000002,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "y-ignored",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 10,
        "y": 99
      },
      "expect": 2.302585092994046,
      "expectWarning": null,
      "actual": {
        "y": 2.302585092994046,
        "value": 2.302585092994046,
        "verification": {
          "expression": "exp(result)",
          "value": 10.000000000000002,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "ln-100",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 100
      },
      "expect": 4.605170185988092,
      "expectWarning": null,
      "actual": {
        "y": 4.605170185988092,
        "value": 4.605170185988092,
        "verification": {
          "expression": "exp(result)",
          "value": 100.00000000000004,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "ln-half",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 0.5
      },
      "expect": -0.6931471805599453,
      "expectWarning": null,
      "actual": {
        "y": -0.6931471805599453,
        "value": -0.6931471805599453,
        "verification": {
          "expression": "exp(result)",
          "value": 0.5,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "ln-3",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 3
      },
      "expect": 1.0986122886681096,
      "expectWarning": null,
      "actual": {
        "y": 1.0986122886681096,
        "value": 1.0986122886681096,
        "verification": {
          "expression": "exp(result)",
          "value": 2.9999999999999996,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "x-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": 0
      },
      "expectError": "INVALID_ARGUMENT",
      "code": "INVALID_ARGUMENT",
      "error": "Argument x must be greater than 0."
    },
    {
      "id": "x-neg",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": -1
      },
      "expectError": "INVALID_ARGUMENT",
      "code": "INVALID_ARGUMENT",
      "error": "Argument x must be greater than 0."
    },
    {
      "id": "empty-x",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter argument x."
    },
    {
      "id": "y-only",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "y": 2.302585092994046
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter argument x."
    },
    {
      "id": "tiny-positive-x",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1e-100
      },
      "expect": -230.25850929940458,
      "expectWarning": null,
      "actual": {
        "y": -230.25850929940458,
        "value": -230.25850929940458,
        "verification": {
          "expression": "exp(result)",
          "value": 9.99999999999989e-101,
          "passed": true
        }
      },
      "tol": 1e-12
    },
    {
      "id": "large-finite",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1e+308
      },
      "expect": 709.1962086421661,
      "expectWarning": null,
      "actual": {
        "y": 709.1962086421661,
        "value": 709.1962086421661,
        "verification": {
          "expression": "exp(result)",
          "value": 1.0000000000000136e+308,
          "passed": false
        }
      },
      "tol": 1e-12
    },
    {
      "id": "x-infinity",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "Infinity"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-nan",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "NaN"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-abc",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "abc"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-whitespace",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "   "
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter argument x."
    },
    {
      "id": "x-null",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": null
      },
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter argument x."
    },
    {
      "id": "x-object",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": {}
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-array",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": []
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-boolean",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": true
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 23,
      "total": 23,
      "golden": 11,
      "boundary": 12,
      "property": 0
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-10T22:48:17.762Z",
  "rendered_at": "2026-09-16T22:03:43.776Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.4",
    "artifacts": {
      "engine": "1.0.4",
      "page": "1.0.4",
      "capability": "1.0.4",
      "evidence": "1.0.4",
      "input_schema": "1.0.4",
      "output_schema": "1.0.4",
      "mcp_contract": "1.0.4"
    },
    "digests": {
      "input_schema_sha256": "3f55c5f8e53ba82bab2921c6040dbd50d054268f639f54840035cae6e2e7ccb3",
      "output_schema_sha256": "3abb8d269c34a106dea9abf33c25f35b9e2cccfb53c7579ae1a660d382f3f4a5",
      "evidence_sha256": "7dece53d3dacb72d4d6674d9114017c1ff09c787f4aec5ac756190bc22b2bd59",
      "evidence_core_sha256": "7dece53d3dacb72d4d6674d9114017c1ff09c787f4aec5ac756190bc22b2bd59",
      "capability_sha256": "dd27969ec51e63dc68baccca83562a7cda6aea1dfc4c8b26e3e40b49843fe9f9",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.4"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
