[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.4 Elementary complex functions
The class cl_N
defines the following operation:
cl_N complex (const cl_R& a, const cl_R& b)
-
Returns the complex number
a+bi
, that is, the complex number with real parta
and imaginary partb
.
Each of the classes cl_N
, cl_R
defines the following operations:
cl_R realpart (const type& x)
-
Returns the real part of
x
. cl_R imagpart (const type& x)
-
Returns the imaginary part of
x
. type conjugate (const type& x)
-
Returns the complex conjugate of
x
.
We have the relations
-
x = complex(realpart(x), imagpart(x))
-
conjugate(x) = complex(realpart(x), -imagpart(x))
This document was generated on August 27, 2013 using texi2html 5.0.