Table of Contents
Re
The real part of the complex number $z$.
Example
The following example defines a complex number $z$ and prints its real part
Input
- Example.Quanty
-- z.Re z=3+2*I print("The real part of z = ",z," is ",z.Re) z.Re = -2 print("The real part of z = ",z," is ",z.Re)
Result
The real part of z = (3+2 I) is 3 The real part of z = (-2+2 I) is -2