Im real
IMREAL Function¶
The IMREAL function in Excel extracts the real part of a given complex number. It is useful in mathematical,
engineering, and scientific applications where distinguishing between the real and imaginary components of a complex
number is required.
Key Features of IMREAL:¶
- Extracts the real part of a complex number in the form
a+biora+bj, wherearepresents the real part. - Returns the real part as a numeric value.
- If the input is a real number (with an imaginary part of
0or unspecified), the function returns the input as is.
Syntax:¶
- inumber: The complex number from which the real part is to be extracted. This can be:
- A string, such as
"5+3i". - A cell reference containing a valid complex number.
- A number (real numbers are valid inputs, treated as complex numbers with no imaginary part).
- A string, such as
Formula Details:¶
If the input complex number is in the form a+bi, the IMREAL function returns a (the real component).
Examples:¶
-
Extracting the Real Part from a Complex Number:
=IMREAL("4+5i")
The real part of4+5iis:
Result:4 -
Extracting the Real Part from a Purely Real Number:
=IMREAL(7)
There is no imaginary part for7, so the function returns:
Result:7 -
Handling Complex Numbers in Cells:
If cellA1contains"3-2i", then:
=IMREAL(A1)
The real part from3-2iis:
Result:3 -
Using a Generated Complex Number:
=IMREAL(COMPLEX(5, -8))
Here theCOMPLEXfunction creates5-8i. The real part is:
Result:5 -
Handling a Purely Imaginary Number:
=IMREAL("0+6i")
A purely imaginary number like6ihas no real component:
Result:0 -
Handling Zero as Input:
=IMREAL(0)
The function returns:
Result:0
Notes:¶
- If the input (inumber) is not a valid complex number or incorrectly formatted, Excel will return a
#VALUE!error. - The function seamlessly handles both real numbers and valid complex numbers.
Applications:¶
- Engineering: Allows separation of the real part of impedance in electrical circuit analysis.
- Data Analysis: Useful for manipulating datasets involving multidimensional or imaginary values.
- Mathematics: Assists in solving equations and transformations involving complex numbers.
Related Functions:¶
- IMAGINARY: Returns the imaginary part of a complex number.
Example:=IMAGINARY("5-3i")→-3 - IMCOMPLEX: Creates a complex number from real and imaginary parts.
Example:=COMPLEX(3, 4)→"3+4i" - IMABS: Returns the magnitude (absolute value) of a complex number.
Example:=IMABS("3+4i")→5 - IMARGUMENT: Returns the argument (angle) of a complex number in radians.
Example:=IMARGUMENT("1+√3i")→1.047
Summary:¶
The IMREAL function in Excel is an essential tool for extracting the real part of a complex number. Whether working
with engineering data, performing mathematical transformations, or separating components of a signal, it provides
critical functionality for handling complex values effectively.