VF_CtoArgVD_CtoArgVE_CtoArg
FunctionArgument (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/Delphiuses VCFstd;
procedure VF_CtoArg( Arg:fVector; X:cfVector; size:UIntSize );
CUDA function C/C++#include <cudaVCFstd.h>
int cudaVF_CtoArg( fVector d_Arg, cfVector d_X, ui size ); void VFcu_CtoArg( fVector h_Arg, cfVector h_X, ui size );
CUDA function Pascal/Delphiuses VCFstd;
function cudaVF_CtoArg( d_Arg:fVector; d_X:cfVector; size:UIntSize ): IntBool;
procedure VFcu_CtoArg( h_Arg:fVector; h_X:cfVector; size:UIntSize );
DescriptionArgi = 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.
Error handlingnone
Return valuenone
See alsoVF_PolartoC,   VF_CtoPolar,   VF_atan2,   VF_CtoAbs,   VF_CtoReIm

VectorLib Table of Contents  OptiVec home