PsiLAB Help Manual Page

Section: Complex arithmetic

Name: cabs

Calculate the absolute value of a complex variable.

[ a:float ] = cabs (c:Complex.t)

Example:
[] let c = complex(1.0,-1.0);; 
[] cabs c ;; 
- : float = 1 

Printed by PsiLAB