### Standard Template Library - STL C++

# <complex>

### Overview

### Description

The <complex> include file defines the complex class, which is used to represent complex numbers.

### Classes

### class complex<N>

**Description**
The complex class is a template class that is instantiated to create complex numbers. The paramter **X** is a real value variable that is typically, a float or double.

**Members**
##### Constructors

complex()

##### Typedefs

value_type

##### Functions

real()

imag()

operator=()

operator+=()

operator-=()

operator*=()

operator/=()

##### Friends

abs()

arg()

conj()

cos()

cosh()

exp()

imag()

log()

log10()

norm()

polar()

pow()

real()

sin()

sinh()

sqrt()

tan()

tanh()

operator==()

operator!=()

operator<<()

operator>>()

operator+()

operator-()

operator*()

operator/()

##### Specializations

class complex<double>

**Description**
The complex class is a specilization of the template class for **doubles** that is instantiated to create complex numbers.

complex()

class complex<float>

**Description**
The complex class is a specilization of the template class for **floats** that is instantiated to create complex numbers.

complex()

class complex<long double>

**Description**
The complex class is a specilization of the template class for **long doubles** that is instantiated to create complex numbers.

complex()