Im

Complex.Im($z$) returns a real number equal to the complex part of $z$

Example

The following example defines $z$ as a complex number and sets $y$ equal to its imaginary part.

Input

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

Result

z = (3 + 2 I)
y = Im[z] = 2

List of all functions in complex

Print/export