{
  "capability_id": "math.cos",
  "tool_id": "cos",
  "engine": "cos",
  "calculation_version": "1.1.0",
  "generated_at": "2026-11-10T05:18:42.079Z",
  "engine_build": "2026-10-29",
  "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:e6b936e45d069a8350e0de1fb26e2cd5c66686f9b6d8c6bd75c17efd3b2ad67e",
  "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-29T08:55:15.563Z",
  "rendered_at": "2026-11-10T05:18:42.079Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.0",
    "artifacts": {
      "engine": "1.1.0",
      "page": "1.1.0",
      "capability": "1.1.0",
      "evidence": "1.1.0",
      "input_schema": "1.1.0",
      "output_schema": "1.1.0",
      "mcp_contract": "1.1.0"
    },
    "digests": {
      "input_schema_sha256": "57941bf36a0ff95f26433e030f47a3166a2737597df41b0ed2104e814f29a08e",
      "output_schema_sha256": "2b12eda73bd078d570c58983e4555dd2ff568c689bfbe261c00a2a9d7ee99006",
      "evidence_sha256": "b54e14f271232c042d8211280e2aee37dca8e82d3a884334a0d83b9ac8b7b53b",
      "evidence_core_sha256": "b54e14f271232c042d8211280e2aee37dca8e82d3a884334a0d83b9ac8b7b53b",
      "capability_sha256": "f6ffc82c777151b7b5656454d7bd42736bfc69303ff905d0257c9f5193a4b153",
      "engine_sha256": "c6ebd8436f08b413e1ac6317b2d48550f2e6639a90dff254244e3aa562158b8d",
      "mcp_contract_sha256": "eb3e39ad4a95ed263415b4932f185d5edfe00a2403267b7c5ed5f718d1ff6da3"
    },
    "contract_checks": {
      "total": 6,
      "passed": 6,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.0"
        },
        {
          "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"
  }
}
