{
  "function": "IMSECH",
  "software": "LibreOffice Calc",
  "guide": "/libreoffice/functions/imsech/",
  "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": 6,
  "native_observations": 0,
  "native_cases": [
    {
      "id": "IMSECH-1",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(\"1+2i\")",
      "inputs": {},
      "expected": [
        -0.41314934426694006,
        -0.687527438655479
      ],
      "kind": "complex",
      "actual": "-0.41314934426694-0.687527438655479i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSECH-2",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(\"4-3i\")",
      "inputs": {},
      "expected": [
        -0.03625349691586887,
        0.005164344607753179
      ],
      "kind": "complex",
      "actual": "-0.0362534969158689+0.00516434460775318i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSECH-3",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(\"1+2j\")",
      "inputs": {},
      "expected": [
        -0.41314934426694006,
        -0.687527438655479
      ],
      "kind": "complex",
      "actual": "-0.41314934426694-0.687527438655479j",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSECH-4",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(2)",
      "inputs": {},
      "expected": [
        0.2658022288340797,
        0.0
      ],
      "kind": "complex",
      "actual": "0.26580222883408",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSECH-5",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(-2)",
      "inputs": {},
      "expected": [
        0.2658022288340797,
        0.0
      ],
      "kind": "complex",
      "actual": "0.26580222883408",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSECH-6",
      "function": "IMSECH",
      "source_path": "content/libreoffice/functions/imsech.md",
      "formula": "=IMSECH(\"bad\")",
      "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_imsech.html",
    "https://help.libreoffice.org/latest/en-US/text/scalc/01/04060116.html",
    "https://support.microsoft.com/en-us/excel/functions/imsech-function"
  ]
}
