The complex numbers are represented by structures
typedef
struct FCOMPLEX {
float r,
i;
} fcomplex
;
typedef
struct DCOMPLEX {
double r,
i;
} dcomplex
;
typedef
struct FPOLAIRE {
float rm,
th;
} fpolaire
;
typedef
struct DPOLAIRE {
double rm,
th;
} dpolaire
;
The first two structures represent complex numbers in the usual way (in simple precision for the first one, in double precision for the second), i.e. the member r is the real part and the member i is the imaginary part. The last two structures represent complex numbers in polar coordinates (in simple precision for the third, in double precision for the fourth), i.e. the member rm is the modulus and the member th is the phase.
The library contains many functions that are useful to manipulate complex
numbers of the two types.
float Cabs (fcomplex);
This function returns the modulus of its argument.
This function returns the sum of its arguments.
This function returns the complex cosine of its argument.
This function returns the quotient of the first argument by the second.
This function returns the complex exponential of its argument.
This function returns the inverse of its argument.
This function returns the complex logarithm of its argument.
This function returns the complex logarithm of its argument.
This function returns the product of its arguments.
This function returns the opposite of its argument.
This function returns the complex number whose real and imaginary parts
are respectively the first and the second argument.
This function returns the conjugate of its argument.
This function returns its argument in polar coordinates.
This function returns its argument in usual coordinates.
This function returns the power of the first argument to the second.
This function returns the principal square root of its argument.
This function returns the complex sine of its argument.
This function returns the difference of its arguments (1st - 2nd).
This function returns the modulus of its argument.
This function returns the sum of its arguments.
This function returns the complex cosine of its argument.
This function returns the quotient of the first argument by the second.
This function returns the complex exponential of its argument.
This function returns the complex logarithm of its argument.
This function returns the complex logarithm of its argument.
This function returns the product of its arguments.
This function returns the opposite of its argument.
This function returns the complex number whose real and imaginary parts
are respectively the first and the second argument.
This function returns the conjugate of its argument.
This function returns its argument in polar coordinates.
This function returns its argument in usual coordinates.
This function returns the power of the first argument to the second.
This function returns the complex sine of its argument.
This function returns the difference of its arguments (1st - 2nd).
This function returns the sum of its arguments.
This function returns the conjugate of its argument.
This function returns the quotient of its arguments.
This function returns the complex exponential of its argument.
This function returns the complex exponential of its argument.
This function returns the inverse of its argument.
This function returns the complex logarithm of its argument.
This function returns the product of its arguments.
This function returns the complex number whose polar coordinates are
the arguments.
This function returns the power of the first argument to the second.
This function returns the principal square root of its argument.
This function returns the difference of its arguments (1st - 2nd).
This function returns the quotient of the first argument by the second.
This function returns the product of the two arguments.
This function returns the quotient of the first argument by the second.
This function returns the product of the two arguments.
This function returns the sum of its arguments.
This function returns the conjugate of its argument.
This function returns the quotient of the first argument by the second.
This function returns the complex exponential of its argument.
This function returns the complex exponential of its argument.
This function returns the inverse of its argument.
This function returns the complex logarithm of its argument.
This function returns the product of its arguments.
This function returns the complex number whose polar coordinates are
the arguments.
This function returns the power of the first argument to the second.
This function returns the principal square root of its argument.
This function returns the difference of its arguments (1st - 2nd).
This function returns the quotient of the first argument by the second.
This function returns the product of the two arguments.
This function returns the quotient of the first argument by the second.
This function returns the product of the two arguments.
This function returns the inverse of its argument.
This function returns the principal square root of its argument.