IMSQRT function
The IMSQRT function in Excel returns the square root of a complex number.
Syntax
IMSQRT(inumber)
Parameters
inumber: The complex number for which you want to calculate the square root. You can input the complex number as a text string, such asa + biora + bj, whereais the real part andbis the imaginary part. Alternatively, you can use a cell reference that contains the complex number.
How It Works
The IMSQRT function calculates the square root of a complex number. The square root of a complex number is calculated using the following formula:
Where:
- is the real part of the complex number,
- is the imaginary part,
- is the modulus (magnitude) of the complex number ,
- The sign of (whether is positive or negative) is used to determine the correct imaginary part of the square root.
Examples
- Square Root of a Complex Number: To calculate the square root of the complex number
3 + 4i:=IMSQRT("3+4i")The result will be a complex number representing the square root of
3 + 4i. - Using Cell References: If cell
A1contains the complex number"1+2i", you can calculate the square root using:=IMSQRT(A1)The result will be the square root of the complex number in
A1. - Purely Imaginary Number: For a purely imaginary number like
"0+1i", you can calculate the square root:=IMSQRT("0+1i")The result will be the square root of
1i, which is a complex number.
Important Notes
- The IMSQRT function only works with valid complex numbers. If the input is not a valid complex number, Excel will return a #VALUE! error.
- Complex numbers can be written using either
iorjfor the imaginary part. - The result will also be a complex number, as the square root of a complex number is generally complex.
Summary
The IMSQRT function in Excel calculates the square root of a complex number. It is useful for working with complex numbers in advanced mathematical, engineering, or scientific calculations that involve square roots of complex values.