Navigation:  Problem Descriptor Reference > The Elements of a Descriptor > Operators >

Complex Operators

Print this Topic Previous pageReturn to chapter overviewNext page

The following operators perform various transformations on complex quantities.

       

REAL ( complex )        

Extracts the real part of the complex number.        

 

IMAG ( complex )        

Extracts the imaginary part of the complex number.        

 

CARG ( complex )        

Computes the Argument (or angular component) of the complex number, implemented as CARG(complex(x,y)) = Atan2(y,x).        

 

CONJ ( complex )        

Returns the complex conjugate of the complex number.        

 

CEXP ( complex )        

Computes the complex exponential of the complex number, given by

CEXP(complex(x,y)) = exp(x+iy) = exp(x)*(cos(y) + i*sin(y)).        

 

CLOG ( complex )        

Computes the natural logarithm of the complex number, given by

CLOG(complex(x,y)) = ln(x+iy) = ln(sqrt(x^2+y^2)) + i*arctan(y/x).        

 

 

 


Page url: index.html?complex_operators.html