| VF_PolartoC | VD_PolartoC | VE_PolartoC |
|
| Function | Construct Cartesian complex numbers from polar coordinates, entered as separate vectors for Mag and Arg. |
|
| Syntax C/C++ | #include <VFmath.h>
void VF_PolartoC( cfVector X, fVector Mag, fVector Arg, ui size ); |
| C++ VecObj | #include <OptiVec.h>
void vector<complex<T>>::PolartoC( const vector<T>& Mag, const vector<T>& Arg ); |
| Pascal/Delphi | uses VFmath;
procedure VF_PolartoC( X:cfVector; Mag, Arg:fVector; size:UInt ); |
|
| Description | The polar coordinates Mag (magnitude, absolute value) and Arg (argument, angle) of each element are used to construct the Cartesian complex vector X.
The difference between this function and VF_PtoC is that, in the latter, the input consists of one vector of type pfVector, rather than of two real-valued vectors for Mag and Arg. |
|
| Error handling | The total loss of precision for very large values of Arg is treated tacitly (without an error message); if it occurs, the result is set to {Mag, 0}. |
|
|
|