std::conj(std::complex) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::conj(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex

Defined in header `<complex>` |  |
template< class T > complex<T> conj( const complex<T>& z ); | (1) |
std::complex<long double> conj( long double z ); | (2) | (since C++11)
template< class DoubleOrIngeter > std::complex<double> conj( DoubleOrInteger z ); | (3) | (since C++11)
std::complex<float> conj( float z ); | (4) | (since C++11)

Returns the complex conjugate of the complex number `z`.

(since C++11)Additional overloads are provided for float, double, long double, and all integer types, which are treated as complex numbers with zero imaginary component.

### [edit] Parameters

z | - | complex value

### [edit] Return value

the complex conjugate of `z`

### [edit] See also

abs(std::complex) | returns the magnitude of a complex number (function template) [edit]
norm | returns the squared magnitude (function template) [edit]
polar | constructs a complex number from magnitude and phase angle (function template) [edit]
C documentation for conj

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/complex/conj&oldid=71702"