Loading...
Select Version
&pagelevel(3)&pagelevel
This section contains an overview of the classes, functions and operators provided by the C++ complex math library.
#include <complex.h>
class complex;
Declarations for all complex math operators and functions are contained in the <complex.h> header file.
The data type for complex numbers is implemented as a class named complex.
Overloaded versions of the following operators and math functions are available for processing complex numbers:
- standard input/output operators and arithmetic, assignment, and comparison operators; see section "cplxops Operators"
- standard math functions such as exponential, logarithmic, power, and square root functions; see section "cplxexp Transcendental functions"
- trigonometric functions (sine, cosine, hyperbolic sine, and hyperbolic cosine); see section "cplxtrig Trigonometric and hyperbolic functions".
Routines to convert between Cartesian and Polar coordinate systems are discussed in section "cplxcartpol Cartesian/Polar functions".
Error handling is described in section "cplxerr Error handling functions".