Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Complex Number Additional Algorithms.

#include <boost/tr1/complex.hpp>

or

#include <complex>

The algorithms acos, asin, atan, acosh, asinh, atanh and fabs are overloaded for arguments of type std::complex<T>. These algorithms are entirely classical, and behave as specified in the C99 standard section 7.3.5. See the Boost.Math documentation for more information.

namespace std {
namespace tr1 {

template<class T> complex<T> acos(complex<T>& x);
template<class T> complex<T> asin(complex<T>& x);
template<class T> complex<T> atan(complex<T>& x);
template<class T> complex<T> acosh(complex<T>& x);
template<class T> complex<T> asinh(complex<T>& x);
template<class T> complex<T> atanh(complex<T>& x);
template<class T> complex<T> fabs(complex<T>& x);

} // namespace tr1
} // namespace std

Configuration: Boost.Config should (automatically) define the macro BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG if your standard library implements the additional inverse trig functions.

Standard Conformity: No known problems.


PrevUpHomeNext