Darwin Help

Back to Index

Complex

Function Complex


Calling Sequence  Complex(Re,Im)
Parameters
NameTypeDescription

Re numeric 
Im numeric 
Synopsis Data structure Complex( Re, Im ) Representation of complex numbers by a pair of numerical arguments, the real part and the complex part. - Operations: Initialization: a := Complex(1,1); b := Complex(0,1); All arithmetic operations: a+b, a-b, a*b, a/b, a^b Special functions exp(a), ln(a), sin(a), cos(a), tan(a) Printing: print(a); printf( '%.3f', a ); Type testing: type(a,Complex); - Conversions: To string : string(a) - Selectors: a[Re] : real part a[Im] : imaginary part