{
  "capability_id": "math.cos",
  "tool_id": "cos",
  "engine": "cos",
  "calculation_version": "1.0.6",
  "generated_at": "2026-10-28T03:01:57.877Z",
  "engine_build": "2026-10-27",
  "test_count": 6,
  "passed": 6,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 4,
      "total": 4
    },
    "boundary": {
      "passed": 2,
      "total": 2
    },
    "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/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 supports angle and triangle-ratio modes. Adjacent/hypotenuse is a shared ratio mode (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 degree floats keep their distinct reduced-quadrant binary64 evaluation; generic radians use Math.cos."
  ],
  "limitations": [
    "Angle mode: finite binary64 theta; deg(default) or rad. Degree reduction uses signed remainder before quadrant reduction; no add360 or angle-proximity epsilon. Listed common degree angles and 17 normalized binary64 radian tokens within ±2π use symbolic recognition, not mathematical exactness of floating-point radians.",
    "Ratio mode: finite adjacent≥0, hypotenuse>0 and adjacent≤hypotenuse; returns adjacent/hypotenuse. A nonzero ratio rounding tozero rejects RESULT_UNDERFLOW. Angle fields in ratio mode and side fields in angle mode reject UNEXPECTED_INPUT.",
    "Numeric aliases theta/t/angle/thetaInput, adjacent/adjInput and hypotenuse/hypInput must agree; unit/unitInput normalize degree(s)/°/radian(s), case/space accepted. Missing mode defaultsangle. Unknown keys reject. Explicit null/blank numeric fields reject; null/blank unit defaultsdeg.",
    "Strict decimal/scientific source text ≤512 characters; hexadecimal, booleans and grouped numbers reject. Nonzero text rounding tozero rejects NUMERIC_UNDERFLOW. RawJSON numbers are checked before lossy parse; finite subnormal accepted.",
    "Independent Decimal420/620 Taylor/Machin and Fraction references:2ULP fixed-vector ceiling; zero/sign/types strict. Legacy18 O3 samples retain2ULP budget; no whole-domain or cross-runtime bitwise guarantee. Radian generic path uses Math.cos; degrees reduced before conversion.",
    "Nearzeros relative conditioning is unbounded; large input spacing loses source angle information before computation. Cosine may legitimately round to±1. Display12significant digits falls back tofull binary64 if rounding changes a boundary. Native exports preserve full scalar and raw inputs.",
    "Graph omitted in ratio mode and for |theta|>1e6; diagram/derived angle is not independent verification. Typing local; sharedURLs/REST/MCP send inputs and may enter logs."
  ],
  "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",
      "publisher": "National Institute of Standards and Technology"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Degree default; listed-identity exact values; inverse is Arccos",
      "supports": "Angle and ratio modes share strict input normalization. Symbolic recognition is identity-only; nonzero outputs are retained in display and exports.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:348d86f79bb60e8e2de13fb954db78409a100c70903ab38fbc86e02d8eaaa796",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 6,
      "total": 6,
      "golden": 4,
      "boundary": 2,
      "property": 0
    },
    "contract_checks": {
      "passed": 6,
      "total": 6
    }
  },
  "evidence_core_generated_at": "2026-10-27T08:11:07.887Z",
  "rendered_at": "2026-10-28T03:01:57.877Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.6",
    "artifacts": {
      "engine": "1.0.6",
      "page": "1.0.6",
      "capability": "1.0.6",
      "evidence": "1.0.6",
      "input_schema": "1.0.6",
      "output_schema": "1.0.6",
      "mcp_contract": "1.0.6"
    },
    "digests": {
      "input_schema_sha256": "8533d44fa37a31f3772f9576730ec8bf3d8d630083f67b733f1228d6ee048842",
      "output_schema_sha256": "cb5c16fd5104b304380d3fec82b9db29daa5a348b30230ce908e3260f8f4b4fa",
      "evidence_sha256": "5b8b4291bb3eedc44ab93fba5834615964cd24f98c1dd8bf96f5e0485c4612fd",
      "evidence_core_sha256": "5b8b4291bb3eedc44ab93fba5834615964cd24f98c1dd8bf96f5e0485c4612fd",
      "capability_sha256": "e636c668aa64dcc80e6e62688a14d3348e109c002ceee31fdca4c29eb8d27878",
      "engine_sha256": "c6ebd8436f08b413e1ac6317b2d48550f2e6639a90dff254244e3aa562158b8d",
      "mcp_contract_sha256": "5898d9426fe62990b5c5eed0b7ac18076acb83b29b083b5b4dd52f28efe79ae5"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.6"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "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"
  }
}
