Purpose

Return value

Syntax

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

Using the IMSINH function

The Excel IMSINH function returns the hyperbolic sine of a complex number. For example, given 1+π/2i as input, the function returns -4.10319E-15 + 1.543080635i as output.

=IMSINH(COMPLEX(1, PI()/2)) // returns -4.10319E-15 + 1.543080635i

When the function’s output is plotted over the complex plane, the real output along the real axis traces the shape of the SINH function .

=IMSINH(COMPLEX(x,0)) // returns SINH(x) + 0i

The imaginary output along the imaginary axis traces the shape of the SIN function .

=IMSINH(COMPLEX(0,y)) // returns 0 + SIN(y)i

Explanation

The function can be defined for complex input using the SIN , COS , SINH , and COSH functions, which take real numbers as input.

IMSINH function definition. - 1

Purpose

Return value

Syntax

=IMSQRT(inumber)
  • inumber - A string representing a complex number.

Using the IMSQRT function

The Excel IMSQRT function returns the square root of a complex number. For example:

=IMSQRT("3+4i") // returns "2+i"

Excel handles complex numbers as strings formatted like “x+yi” or “x+yj”. Use the COMPLEX function to get the string representing a complex number.

Basic Example

The IMSQRT function returns the complex number’s principal square root (the one with a non-negative real part). For example:

=IMSQRT("2i") // returns "1+i"

The two possible square roots of “2i” are “1+i” and “-1-i”, so “1+i” is returned because it has a non-negative real part.

Square Root of Negative One Example

A fundamental property of complex numbers is that the square root of “-1” is “i”. However, when you take the square root of “-1”, the result contains a tiny error due to how Excel handles floating-point arithmetic.

=IMSQRT("-1") // returns "6.12323399573677E-17+i"

The real part of the return value is a very small number close to zero. For practical purposes, it can be interpreted as just “i” .

Explanation

The square root of a complex number is given by:

Definition of complex square root. - 2

Where “r” is equal to the radius of the complex number and “θ” is equal to the angle of the complex number for the branch cut extending from -π to π (excluding -π).

In Excel, we can write the formula equivalent to the complex square root function like this, where B6 contains a string representing a complex number:

=LET(
r, IMABS(B6),
t, IMARGUMENT(B6),
COMPLEX(SQRT(r)*COS(t/2),SQRT(r)*SIN(t/2))
)

Notes

  • Excel’s IMSQRT function always returns the principal root with a non-negative real part.
  • If the input is not a valid complex number, IMSQRT will return the #NUM! Error.