VF_PolartoCVD_PolartoCVE_PolartoC
FunctionConstruct 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/Delphiuses VFmath;
procedure VF_PolartoC( X:cfVector; Mag, Arg:fVector; size:UInt );
DescriptionThe 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 handlingThe 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}.
Return valuenone
See alsoVF_PtoC,   VF_CtoPolar,   VF_ReImtoC,   VF_CtoArg,   VF_CtoNorm

VectorLib Table of Contents  OptiVec home