Loading [MathJax]/jax/output/CommonHTML/jax.js

Re

Complex.Re(z) returns a real number equal to the real part of z

Example

The following example defines z as a complex number and sets x equal to its real part.

Input

Example.Quanty
-- Complex.Re(z)
z = 3 + 2 * I
x = Complex.Re(z)
 
print("z = ",z)
print("x = Re[z] = ",x)

Result

z = (3 + 2 I)
x = Re[z] = 3

List of all functions in complex

Print/export