Dapatkan akar kuadrat dari bilangan kompleks
=IMSQRT(inumber)
| Parameter | Deskripsi |
|---|---|
inumber |
A string representing a complex number. |
The Excel IMSQRT function returns the square root of a complex number. For example:
=IMSQRT("3+4i") // returns "2+i"
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"
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
=IMSQRT("-1") // returns "6.12323399573677E-17+i"
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))
)