Practice free

IMSECH function

IMSECH returns the hyperbolic secant of a complex number as text in complex number form. To get a plain number, wrap the result in IMREAL or IMAGINARY.

Example

Read it as a sentence: find the hyperbolic secant of the complex number 1+i, then keep only its real part, which gives 0.498337030555187.

Practice this in the app

Syntax

IMSECH(inumber)

inumber (required)
A complex number as text, like "3+4i".

Returns: The result as a complex number in text form.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=IMSECH("3+4i") -0.065294027857947+0.0752249603027732i "3+4i"
=IMSECH("3+4j") -0.065294027857947+0.0752249603027732j Suffix j
=IMSECH(5) 0.0134752822213046 Pure real number 5
=IMSECH("5") 0.0134752822213046 Pure real text "5"
=IMSECH("i") 1.85081571768093 Pure imaginary "i"
=IMSECH("-2i") -2.40299796172238 "-2i"
=IMSECH("3+4I") #NUM! Uppercase I
=IMSECH("abc") #NUM! Invalid text

Watch out for

  • Result is text; wrap in IMREAL or IMAGINARY to get a number.

Where it works

Excel
IMSECH arrived in Excel 2013. Older versions do not have it.
Google Sheets
Same name, same behaviour for everyday use.

Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .