IMABS function
The IMABS function in Excel is used to return the absolute value (magnitude) of a complex number. The absolute value of a complex number is its distance from the origin in the complex plane and is always a non-negative number.
Syntax
IMABS(inumber)
Parameters
inumber: This is the complex number (in the form of a string) for which you want to calculate the absolute value. The complex number should be entered in the forma + biora + bj, whereais the real part andbis the imaginary part. If the complex number is in polar form, user * (cos θ + i * sin θ).
How It Works
The IMABS function calculates the magnitude (or absolute value) of a complex number using the formula:
Where:
ais the real part of the complex number.bis the imaginary part of the complex number.iis the imaginary unit.
Examples
- Basic Example: To calculate the absolute value of the complex number
3 + 4i:=IMABS("3+4i")The result will be 5 because:
- Complex Number with Negative Imaginary Part: To calculate the absolute value of the complex number
5 - 12i:=IMABS("5-12i")The result will be 13 because:
- Complex Number with Decimal Parts: To calculate the absolute value of the complex number
2.5 + 3.5i:=IMABS("2.5+3.5i")The result will be 4.301 because:
- Using Cell Reference: If cell
A1contains the complex number"7+24i", you can calculate its absolute value:=IMABS(A1)The result will be 25 because:
Important Notes
- The IMABS function works only with complex numbers. If the input is not in a valid complex number format, Excel will return a #VALUE! error.
- The result is always a real number, representing the magnitude of the complex number.
- Complex numbers can be expressed in two forms in Excel:
- Rectangular form:
"a + bi"or"a + bj"(whereais the real part andbis the imaginary part). - Polar form: In Excel, complex numbers are typically used in the rectangular form.
- Rectangular form:
Summary
The IMABS function in Excel is used to calculate the magnitude or absolute value of a complex number. It is useful for applications in mathematics, engineering, and physics, where the magnitude of a complex number is required.