{
  "capability_id": "math.arctan",
  "tool_id": "arctan",
  "engine": "arctan",
  "calculation_version": "1.0.7",
  "generated_at": "2026-09-16T22:03:43.780Z",
  "engine_build": "2026-09-10",
  "test_count": 10,
  "passed": 10,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 7,
      "passed": 7
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "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/arctan",
  "api": "https://www.calculatorx.com/api/v1/calc/arctan",
  "schema_input": "https://www.calculatorx.com/schemas/math.arctan.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.arctan.output.json",
  "assumptions": [
    "Real inverse tangent with principal branch (−π/2, π/2) (NIST DLMF §4.23(ii)). Infinity is not accepted as an input.",
    "Opposite/adjacent in the UI is a right-triangle length convenience (opposite ≥ 0, adjacent > 0, same unit). It is not atan2. The published engine remains single-argument arctan(x). Use Decimal for a signed ratio, and Tan for the forward map.",
    "When x is exactly a listed common value (0, ±1/√3, ±1, ±√3), the engine returns the exact algebraic angle such as 45° = π/4. Nearby floats are not snapped."
  ],
  "limitations": [
    "Missing x → MISSING_REQUIRED_INPUT",
    "Non-finite → INVALID_NUMBER"
  ],
  "boundary_conditions": [
    "Missing x returns MISSING_REQUIRED_INPUT.",
    "Non-numeric, object, array, boolean, NaN, or Infinity inputs return INVALID_NUMBER.",
    "arctan(0) = 0°; arctan(1) = 45°; arctan(√3) = 60°; arctan(−1) = −45°.",
    "Large finite |x| approaches ±90°. The mathematical principal range is the open interval (−90°, 90°). IEEE-754 binary64 results may round to ±90° for extremely large finite inputs (for example 1e20 and Number.MAX_VALUE). When the result rounds to ±90°, tan(θ) cannot recover x and verification.passed may be false."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Elementary Functions",
      "url": "https://dlmf.nist.gov/4",
      "supports": "Inverse trigonometric functions as elementary inverses of sine, cosine, and tangent",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §4.23",
      "section": "Inverse trigonometric functions; principal values",
      "url": "https://dlmf.nist.gov/4.23",
      "supports": "Principal arctan on the real line with range (−π/2, π/2); degree output is θ × 180/π",
      "kind": "reference"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Principal branch; exact-value recognition; ratio mode is UI-only",
      "supports": "Published engine is arctan(x) of one real argument (not atan2).",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:0eaafa4c30359dbfbc594b53963d9dd2ce079214d9aa5fcbf726f51021fa6e6e",
  "tests": [
    {
      "id": "one",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1
      },
      "expect": {
        "deg": 45
      },
      "expectWarning": null,
      "actual": {
        "deg": 45,
        "rad": 0.7853981633974483,
        "verification": {
          "expression": "tan(result)",
          "value": 0.9999999999999999,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "sqrt3",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1.7320508075688772
      },
      "expect": {
        "deg": 60
      },
      "expectWarning": null,
      "actual": {
        "deg": 60,
        "rad": 1.0471975511965976,
        "verification": {
          "expression": "tan(result)",
          "value": 1.7320508075688767,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "inv-sqrt3",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 0.5773502691896258
      },
      "expect": {
        "deg": 30
      },
      "expectWarning": null,
      "actual": {
        "deg": 30,
        "rad": 0.5235987755982988,
        "verification": {
          "expression": "tan(result)",
          "value": 0.5773502691896257,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "zero",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 0
      },
      "expect": {
        "deg": 0,
        "rad": 0
      },
      "expectWarning": null,
      "actual": {
        "deg": 0,
        "rad": 0,
        "verification": {
          "expression": "tan(result)",
          "value": 0,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "neg",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": -1
      },
      "expect": {
        "deg": -45
      },
      "expectWarning": null,
      "actual": {
        "deg": -45,
        "rad": -0.7853981633974483,
        "verification": {
          "expression": "tan(result)",
          "value": -0.9999999999999999,
          "passed": true
        },
        "exact": true
      },
      "tol": 0
    },
    {
      "id": "missing-x",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter a finite value x."
    },
    {
      "id": "x-abc",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "abc"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-infinity",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "Infinity"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-1e20",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 100000000000000000000
      },
      "expect": {
        "deg": 90
      },
      "expectWarning": null,
      "actual": {
        "deg": 90,
        "rad": 1.5707963267948966,
        "verification": {
          "expression": "tan(result)",
          "value": 16331239353195370,
          "passed": false
        }
      },
      "tol": 0
    },
    {
      "id": "x-tiny",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1e-20
      },
      "expect": {
        "deg": 5.729577951308233e-19
      },
      "expectWarning": null,
      "actual": {
        "deg": 5.729577951308233e-19,
        "rad": 1e-20,
        "verification": {
          "expression": "tan(result)",
          "value": 1e-20,
          "passed": true
        },
        "hint": {
          "x": 0,
          "deg": 0,
          "rad": 0
        }
      },
      "tol": 0
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 10,
      "total": 10,
      "golden": 7,
      "boundary": 3,
      "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.780Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.7",
    "artifacts": {
      "engine": "1.0.7",
      "page": "1.0.7",
      "capability": "1.0.7",
      "evidence": "1.0.7",
      "input_schema": "1.0.7",
      "output_schema": "1.0.7",
      "mcp_contract": "1.0.7"
    },
    "digests": {
      "input_schema_sha256": "eb99846613ffc2031fb1fb7e3d0ef7531e2552f60dd8f21d62cb80e22f3dfa10",
      "output_schema_sha256": "54220fdceb1754d56c53f6099fbeaac0fc5a15fec4e2ef7fcc4b045ddd694e1c",
      "evidence_sha256": "9698b0100d16f5e50120db2648d2f9dd37671e211ac3abf19fbeff3dabcf7e94",
      "evidence_core_sha256": "9698b0100d16f5e50120db2648d2f9dd37671e211ac3abf19fbeff3dabcf7e94",
      "capability_sha256": "d80f45b6ffe189bc742270e530efad4ac71bc8afa1a9f5a30d097f232163f02d",
      "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.7"
        },
        {
          "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"
  }
}
