Standard C++ Library Class Reference
operator!= (T x, const complex<T>& y);
Returns true if x is not equal to the real part of y or the imaginary part of y is not equal to
0.
template <class X> istream&
operator>> (istream& is, complex<X>& x);
Reads a complex number x into the input stream is. x may be of the form u, (u), or (u,v)
where u is the real part and v is the imaginary part. If bad input is encountered, the
ios::badbit flag is set.
template <class X> ostream&
operator<< (ostream& os, const complex<X>& x);
Returns os << "(" << x.real() << "," << x.imag() << ")".
Non-member Functions
template<class T> T
abs(const complex<T>& c);
Returns the absolute value or magnitude of c (the square root of the norm).
template<class T> complex<T>
acos (const complex<T>& c);
Returns the arccosine of c.
template<class T> T
arg (const complex<T>& c);
Returns the phase angle of c.
template<class T> complex<T>
asin (const complex<T>& c);
Returns the arcsine of c.
template<class T> complex<T>
atan (const complex<T>& c);
Returns the arctangent of c.
template<class T> complex<T>
atan2 (T a, const complex<T>& b);
Returns the arctangent of a/b.
template<class T> complex<T>
atan2 (const complex<T>& a, T b);
Returns the arctangent of a/b.
template<class T> complex<T>