{
  "function": "IMCOT",
  "software": "LibreOffice Calc",
  "guide": "/libreoffice/functions/imcot/",
  "review_date": "2026-10-12",
  "scope": "Selected example checks, not certification of every formula, error, locale or cross-application import/export.",
  "native_engine": "LibreOffice 25.2.3.2 520(Build:2)",
  "native_assertions": 5,
  "native_observations": 0,
  "native_cases": [
    {
      "id": "IMCOT-1",
      "function": "IMCOT",
      "source_path": "content/libreoffice/functions/imcot.md",
      "formula": "=IMCOT(\"1+i\")",
      "inputs": {},
      "expected": [
        0.21762156185440273,
        -0.8680141428959249
      ],
      "kind": "complex",
      "actual": "0.217621561854403-0.868014142895925i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMCOT-2",
      "function": "IMCOT",
      "source_path": "content/libreoffice/functions/imcot.md",
      "formula": "=IMCOT(\"4-3i\")",
      "inputs": {},
      "expected": [
        0.004901182394304474,
        0.9992669278059017
      ],
      "kind": "complex",
      "actual": "0.00490118239430447+0.999266927805902i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMCOT-3",
      "function": "IMCOT",
      "source_path": "content/libreoffice/functions/imcot.md",
      "formula": "=IMCOT(\"1+2j\")",
      "inputs": {},
      "expected": [
        0.0327977555337526,
        -0.984329226458191
      ],
      "kind": "complex",
      "actual": "0.0327977555337526-0.984329226458191j",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMCOT-4",
      "function": "IMCOT",
      "source_path": "content/libreoffice/functions/imcot.md",
      "formula": "=IMCOT(\"bad\")",
      "inputs": {},
      "expected": 502,
      "kind": "error",
      "actual": 502,
      "native_error": 502,
      "passed": true
    },
    {
      "id": "IMCOT-5",
      "function": "IMCOT",
      "source_path": "content/libreoffice/functions/imcot.md",
      "formula": "=IMCOT(0)",
      "inputs": {},
      "expected": 502,
      "kind": "error",
      "actual": 502,
      "native_error": 502,
      "passed": true
    }
  ],
  "independent_model_cases": [],
  "documented_expected_results_not_native": false,
  "sources": [
    "https://help.libreoffice.org/latest/en-US/text/scalc/01/func_imcot.html",
    "https://help.libreoffice.org/latest/en-US/text/scalc/01/04060116.html",
    "https://support.microsoft.com/en-us/excel/functions/imcot-function"
  ]
}
