Purpose

Return value

Syntax

=IMSECH(complex_num)
  • complex_num - The number to get the inverse hyperbolic secant of.

Using the IMSECH function

The Excel IMSECH function returns the hyperbolic secant of a complex number. Given “1+1.5707963267949i” as input, the function returns “-3.9E-15-0.85092i” as output.

=IMSECH(COMPLEX(1, PI()/2)) // returns -3.9E-15-0.85092i

Explanation

The complex hyperbolic secant function is the reciprocal of the complex hyperbolic sine function.

Definition of complex hyperbolic secant function. - 1

In Excel, the function’s output is equivalent to the following formula.

=IMDIV(1,IMCOSH(z)) // equivalent to IMSECH(z) 

Purpose

Return value

Syntax

=IMSIN(complex_num)
  • complex_num - The complex number in the form “x+yi”.

Using the IMSIN function

The Excel IMSIN function returns the sine of a complex number. For instance, given “1+1i” as input, the function returns the complex number equal to the sine of the input.

=IMSIN("1+1i") // returns 1.29845758141598+0.634963914784736i

Given real number input, the function behaves like the sine function. For example, given π + 0i as input the function returns 3.23108914886517E-15 (approximately zero). The sine of π is zero, but due to floating-point precision, it returns a very small number close to zero.

=IMSIN(COMPLEX(PI(),0)) // returns 3.23108914886517E-15

Explanation

Mathematically, the sine of a complex number can be represented using a combination of the standard and hyperbolic trigonometric functions.

Definition of sine for a complex number. - 2

If B6 contains a complex number in the form “x+yi”, this is equivalent to the following formula.

=COMPLEX(
    SIN(IMREAL(B6))*COSH(IMAGINARY(B6)),
    COS(IMREAL(B6))*SINH(IMAGINARY(B6))
)

Alternatively, the sine of a complex number can be defined in terms of the exponential function, where “z=x+yi”.

Sine of a complex number in terms of the exponential function. - 3

If B6 contains a complex number in the form “x+yi”, this is equivalent to the following formula.

=IMDIV(
    IMSUB(
        IMEXP(IMPRODUCT(COMPLEX(0,1), B6)), 
        IMEXP(IMPRODUCT(COMPLEX(0,-1), B6))
    ),
    COMPLEX(0, 2)
)