Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

cplxintro Introduction to complex mathematics in C++

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:

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".