PsiLAB Help Manual
Page
Section:
Complex arithmetic
Name:
imag
Extract the imaginary part of a complex number.
[ im:float ] = imag (c:Complex.t)
Example:
[] let c = complex(1.0,-1.0);;
val c : Complex.t = 1, -1
[] imag c ;;
- : float = -1
Printed by PsiLAB