{
  "function": "IMSEC",
  "software": "LibreOffice Calc",
  "guide": "/libreoffice/functions/imsec/",
  "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": 4,
  "native_observations": 0,
  "native_cases": [
    {
      "id": "IMSEC-1",
      "function": "IMSEC",
      "source_path": "content/libreoffice/functions/imsec.md",
      "formula": "=IMSEC(\"1+i\")",
      "inputs": {},
      "expected": [
        0.49833703055518686,
        0.5910838417210451
      ],
      "kind": "complex",
      "actual": "0.498337030555187+0.591083841721045i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSEC-2",
      "function": "IMSEC",
      "source_path": "content/libreoffice/functions/imsec.md",
      "formula": "=IMSEC(\"4-3i\")",
      "inputs": {},
      "expected": [
        -0.06529402785794704,
        0.07522496030277323
      ],
      "kind": "complex",
      "actual": "-0.065294027857947+0.0752249603027732i",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSEC-3",
      "function": "IMSEC",
      "source_path": "content/libreoffice/functions/imsec.md",
      "formula": "=IMSEC(\"1+2j\")",
      "inputs": {},
      "expected": [
        0.1511762982655772,
        0.22697367539372157
      ],
      "kind": "complex",
      "actual": "0.151176298265577+0.226973675393722j",
      "native_error": 0,
      "passed": true
    },
    {
      "id": "IMSEC-4",
      "function": "IMSEC",
      "source_path": "content/libreoffice/functions/imsec.md",
      "formula": "=IMSEC(\"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_imsec.html",
    "https://help.libreoffice.org/latest/en-US/text/scalc/01/04060116.html",
    "https://support.microsoft.com/en-us/excel/functions/imsec-function"
  ]
}
