{
  "capability_id": "math.tan",
  "tool_id": "tan",
  "engine": "tan",
  "calculation_version": "1.0.4",
  "generated_at": "2026-10-28T01:54:42.332Z",
  "engine_build": "2026-10-14",
  "test_count": 25,
  "passed": 25,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 15,
      "total": 15
    },
    "boundary": {
      "passed": 10,
      "total": 10
    },
    "property": {
      "passed": 0,
      "total": 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/tan",
  "api": "https://www.calculatorx.com/api/v1/calc/tan",
  "schema_input": "https://www.calculatorx.com/schemas/math.tan.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.tan.output.json",
  "assumptions": [
    "Real tangent only. Inverse is Arctan, not this published engine.",
    "Documented pole classification: UNDEFINED when distance to 90° + 180°k is < 1e-12°. That threshold is a numerical classification policy, not a claim that those inputs are mathematically exact odd multiples of 90°. |cos(θ)| is not used as a pole test.",
    "If the input is not classified as a pole and distance-to-pole < 0.01°, the engine returns a finite tan(θ) with warnings: [{ code: NEAR_SINGULARITY }]. status remains ok.",
    "Documented common-angle snap: after reducing mod 360°, an input within 1e-12° of a listed common angle (0, ±30, ±45, ±60, …) is replaced by the algebraic value (0, ±1/√3, ±1, ±√3). This is a snap policy, not mathematical exactness. Nearby inputs such as 60.00000005° keep IEEE-754 Math.tan.",
    "Documented cleanup: if no snap applies and |y| < 1e-12, the engine rewrites y to 0. That changes the IEEE-754 result for some non-zero inputs; it is a cleanup policy, not a mathematical identity."
  ],
  "limitations": [
    "Exact poles (90° + 180°k) → UNDEFINED",
    "Within 0.01° of a pole → finite value with warnings NEAR_SINGULARITY",
    "Missing theta → MISSING_REQUIRED_INPUT"
  ],
  "boundary_conditions": [
    "Missing θ returns MISSING_REQUIRED_INPUT. Invalid unit returns INVALID_UNIT. Malformed numbers return INVALID_NUMBER.",
    "tan(0°) = 0; tan(45°) = 1; tan(30°) = 1/√3; tan(60°) = √3; tan(−45°) = −1; tan(180°) = 0; tan(225°) = 1; tan(360°) = 0.",
    "tan(90°), tan(270°), tan(−90°), tan(π/2 rad) return UNDEFINED.",
    "tan(89°) and tan(91°) are large finite values, not UNDEFINED.",
    "Periodicity: tan(θ + 180°) = tan(θ), e.g. tan(405°) = tan(45°) = 1."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Elementary Functions",
      "url": "https://dlmf.nist.gov/4",
      "supports": "Tangent as sin/cos with period π and poles where cos = 0",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §4.14",
      "section": "Trigonometric functions",
      "url": "https://dlmf.nist.gov/4.14",
      "supports": "tan(θ) undefined at odd multiples of π/2; degree input converted via θ° × π/180",
      "kind": "reference",
      "publisher": "National Institute of Standards and Technology"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Poles are UNDEFINED, not Infinity; inverse is Arctan",
      "supports": "Published engine is forward tan(θ) only. Pole classification, common-angle snap, and |y| cleanup are documented numerical policies, not mathematical exactness. Near-pole values stay finite with NEAR_SINGULARITY.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:672b0a252bc3ec1ae680516503c13aaddd3a8e304d3c94d640505752aa2b42cd",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 25,
      "total": 25,
      "golden": 15,
      "boundary": 10,
      "property": 0
    },
    "contract_checks": {
      "passed": 5,
      "total": 5
    }
  },
  "evidence_core_generated_at": "2026-10-14T02:50:33.742Z",
  "rendered_at": "2026-10-28T01:54:42.332Z",
  "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": "a145c86bf4295643a515b07cddf823049424a88c3a7fc25e463dfc92773671b6",
      "output_schema_sha256": "c6e4f75fa48f8b655778eb2014eee65632aa82db1d919d28c89fbd08e417449c",
      "evidence_sha256": "33fb651de7c8042f7ed42645971874badb237cf98a036d55eb8cd8d73607560e",
      "evidence_core_sha256": "33fb651de7c8042f7ed42645971874badb237cf98a036d55eb8cd8d73607560e",
      "capability_sha256": "5fa5470e7541201ad3e1b58fa655b6c481ba2b7c8fc46ea850bd9f8620abe3ab",
      "engine_sha256": "a52e77fc996e40d06e7d5ddcc39017a5be9b032043cfbf7f8bd1a81865f4f19f",
      "mcp_contract_sha256": "d14033b99f8e9361771b925d834cc16950be94186320a45925617730d917ebcc"
    },
    "contract_checks": {
      "total": 5,
      "passed": 5,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.4"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
