PsiLAB Help Manual Page

Section: Complex arithmetic

Name: real

Extract the real part of a complex number.

[ re:float ] = real (c:Complex.t)

Example:
[] let c = complex(1.0,-1.0);; 
val c : Complex.t = 1, -1 
[] real c ;; 
- : float = 1 

Printed by PsiLAB