| VF_CtoPolar | VD_CtoPolar | VE_CtoPolar |
|
| Function | Transformation of complex numbers from Cartesian into polar coordinates, stored in separate vectors Mag and Arg. |
|
| Syntax C/C++ | #include <VCFstd.h>
void VF_CtoPolar( fVector Mag, fVector Arg, cfVector X, ui size ); |
| C++ VecObj | #include <OptiVec.h>
void vector<T>::CtoPolar( vector<T> Arg, const vector<complex<T>>& X ); |
| Pascal/Delphi | uses VCFstd;
procedure VF_CtoPolar( Mag, Arg:fVector; X:cfVector; size:UIntSize ); |
|
| Description | The polar coordinates Mag (magnitude, absolute value) and Arg (argument, angle) of each element of the Cartesian complex vector X are calculated. For the Cartesian coordinates {0, 0}, the polar coordinates are also set to {0 @ 0}.
This function is similar to VF_CtoP, with the exception that Mag and Arg are stored in separate vectors instead of one polar complex vector, as in VF_CtoP. |
|
|
|
|