| Description | These functions allow to generate numbers of the three polar-complex data types fPolar, dPolar, and ePolar. CMATH offers overloaded versions of these functions for C++. See CMATH.HTM, chapter 2.1 for details.
In C/C++, fpolr should be used whenever temporary complex variables are needed as arguments for functions. In this case, fpolr replaces the less elegant direct assignment of the Mag and Arg parts, e.g.:
p.Mag = 3.0; p.Arg = 1.5708;
VPF_equC( X, size, p ); /* less convenient */
VPF_equC( Y, size, fpolr( 3.0, 1.5708 )); /* easier */
In Pascal/Delphi, writing
fpolr( p, 3.0, 1.5708 );
is just equivalent to
p.Mag = 3.0; p.Arg = 1.5708; |
|