Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/complex/conj"

From cppreference.com
< cpp‎ | numeric‎ | complex
m (Update links.)
m (Use since= and until= params of {{dcl}} template.)
Line 7: Line 7:
 
complex<T> conj( const complex<T>& z );
 
complex<T> conj( const complex<T>& z );
 
}}
 
}}
{{dcl | num=2 | notes={{mark since c++11}} | 1=
+
{{dcl | num=2 | since=c++11 | 1=
 
std::complex<long double> conj( long double z );
 
std::complex<long double> conj( long double z );
 
}}
 
}}
{{dcl | num=3 | notes={{mark since c++11}} | 1=
+
{{dcl | num=3 | since=c++11 | 1=
 
template< class DoubleOrIngeter >
 
template< class DoubleOrIngeter >
 
std::complex<double> conj( DoubleOrInteger z );
 
std::complex<double> conj( DoubleOrInteger z );
 
}}
 
}}
{{dcl | num=4 | notes={{mark since c++11}} | 1=
+
{{dcl | num=4 | since=c++11 | 1=
 
std::complex<float> conj( float z );
 
std::complex<float> conj( float z );
 
}}
 
}}

Revision as of 15:41, 1 July 2013

 
 
 
 
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.

Parameters

z - complex value

Return value

the complex conjugate of z

See also

returns the magnitude of a complex number
(function template) [edit]
returns the squared magnitude
(function template) [edit]
constructs a complex number from magnitude and phase angle
(function template) [edit]