| VF_CtoArg | VD_CtoArg | VE_CtoArg |
|
| Function | Argument (angle) of cartesian-complex numbers |
|
| Syntax C/C++ | #include <VCFstd.h>
void VF_CtoArg( fVector Arg, cfVector X, ui size ); |
| C++ VecObj | #include <OptiVec.h>
void vector<T>::CtoArg( const vector<complex<T>>& X ); |
| Pascal/Delphi | uses VCFstd;
procedure VF_CtoArg( Arg:fVector; X:cfVector; size:UIntSize ); |
|
| Description | Argi = arctan( Im(Xi) / Re(Xi) )
The argument, i.e. the angle of each element of the complex vector X is calculated. For Cartesian coordinates {0, 0}, the angle is arbitrary and is set to zero.
When necessary, depending on the signs of Re(Xi) and Im(Xi), p is added or subtracted from the arctan to obtain the correct quadrant. |
|
|
|
|