Returns the Real component of a Complex expression.
REAL(val)
val |
- |
A scalar, series or table. |
A scalar, series, or table.
real(42.1)
returns 42.1.
real(3.2 + 4.7i)
returns 3.2.
a = {1 + 10i, 2 + 20i, 3 + 30i, 4 + 40i};
b = real(a);
b == {1, 2, 3, 4}
b is a series that contains the real part of a.
REAL returns a real scalar or real series.
See IMAGINARY to return the imaginary part of a scalar or series as real values.
See CASTREAL to convert an input value to a real scalar value.