{
  "capability_id": "math.cos",
  "tool_id": "cos",
  "engine": "cos",
  "calculation_version": "1.0.5",
  "generated_at": "2026-09-16T22:03:43.779Z",
  "engine_build": "2026-09-10",
  "test_count": 6,
  "passed": 6,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 4,
      "passed": 4
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "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/cos",
  "api": "https://www.calculatorx.com/api/v1/calc/cos",
  "schema_input": "https://www.calculatorx.com/schemas/math.cos.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.cos.output.json",
  "assumptions": [
    "Real cosine. The published engine is forward cos(θ). Adjacent/hypotenuse is a local triangle convenience (hypotenuse > 0, adjacent ≥ 0, adjacent ≤ hypotenuse). Use Arccos for the inverse API.",
    "Algebraic snap applies only when the reduced angle (mod 360°) is a listed identity such as 0°, 30°, 45°, 60°, 90°. Nearby floats, including 89.99999995°, keep IEEE-754 Math.cos."
  ],
  "limitations": [
    "Missing theta → MISSING_REQUIRED_INPUT",
    "unit must be deg|rad → INVALID_UNIT"
  ],
  "boundary_conditions": [
    "Missing θ returns MISSING_REQUIRED_INPUT. Invalid unit returns INVALID_UNIT. Malformed numbers, NaN, and ±Infinity return INVALID_NUMBER.",
    "cos(0°) = 1; cos(60°) = 1/2; cos(90°) = 0; cos(180°) = −1; cos(300°) = 1/2; cos(−θ) = cos(θ)."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Elementary Functions",
      "url": "https://dlmf.nist.gov/4",
      "supports": "Cosine as a standard trigonometric function with period 2π",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §4.14",
      "section": "Definitions and period of sine and cosine",
      "url": "https://dlmf.nist.gov/4.14",
      "supports": "cos(θ) on the real line; even function; degree input converted via θ° × π/180",
      "kind": "reference"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Degree default; listed-identity exact values; inverse is Arccos",
      "supports": "Published engine is forward cos(θ) only. Algebraic snap is identity-only; |y|<1e-12 display rounding is UI-only.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:7381e78b8177db9fb0ef34490d71a4d188fd5a3f3cd5d6f1b69afb67feec8b61",
  "tests": [
    {
      "id": "deg-60",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "theta": 60,
        "unit": "deg"
      },
      "expect": 0.5,
      "expectWarning": null,
      "actual": 0.5,
      "tol": 0
    },
    {
      "id": "deg-0",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "theta": 0
      },
      "expect": 1,
      "expectWarning": null,
      "actual": 1,
      "tol": 0
    },
    {
      "id": "deg-90",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "theta": 90,
        "unit": "deg"
      },
      "expect": 0,
      "expectWarning": null,
      "actual": 0,
      "tol": 0
    },
    {
      "id": "rad-pi",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "theta": 3.141592653589793,
        "unit": "rad"
      },
      "expect": -1,
      "expectWarning": null,
      "actual": -1,
      "tol": 0
    },
    {
      "id": "missing-theta",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter a finite angle θ."
    },
    {
      "id": "theta-abc",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "theta": "abc"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 4,
      "boundary": 2,
      "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.779Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.5",
    "artifacts": {
      "engine": "1.0.5",
      "page": "1.0.5",
      "capability": "1.0.5",
      "evidence": "1.0.5",
      "input_schema": "1.0.5",
      "output_schema": "1.0.5",
      "mcp_contract": "1.0.5"
    },
    "digests": {
      "input_schema_sha256": "4358979aadf77ad045bb159c234c88020d7e42b6946ea3c50a7395575c38f8bd",
      "output_schema_sha256": "e3bbbf2db43fad9a1848c02f8c91b44d3a5293573b883a0ff74dcba8763cfaa4",
      "evidence_sha256": "4b23c14779fe6cb897b1473e069e62de72eb3254b674c31095a9914546a45790",
      "evidence_core_sha256": "4b23c14779fe6cb897b1473e069e62de72eb3254b674c31095a9914546a45790",
      "capability_sha256": "edddb3e9b638a6c463b687a177f609a927c7a53d7a41c252d91e8910b436a25b",
      "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.5"
        },
        {
          "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"
  }
}
