Re
The real part function.
Syntax
-
Re(x)
-
x
is a number, vector, or matrix
-
Description
-
If
x
is a number,Re(x)
is the real part ofx
. -
If
v
is a vector,Re(v)
is the vector of the real parts ofv
. -
If
A
is a matrix,Re(A)
is the matrix of the real parts ofA
.
Typewise, Re(x)
is always a real number, vector, or matrix.
Examples
Re(1 + √3⋅i)
1
Re(e^(π/6⋅i))
0.866025403784 (=√3/2)
Re(❨2 + i, 3 − 2⋅i, 1 − i❩)
⎛2⎞ e⎜3⎟ ⎝1⎠
Re(❨❨5, i❩, ❨−i, −1❩❩)
⎛5 0 ⎞ ⎝0 −1⎠