12345678910111213141516171819202122232425262728293031323334 |
- #ifndef BOOST_MATH_COMPLEX_ACOSH_INCLUDED
- #define BOOST_MATH_COMPLEX_ACOSH_INCLUDED
- #ifndef BOOST_MATH_COMPLEX_DETAILS_INCLUDED
- # include <boost/math/complex/details.hpp>
- #endif
- #ifndef BOOST_MATH_COMPLEX_ATANH_INCLUDED
- # include <boost/math/complex/acos.hpp>
- #endif
- namespace boost{ namespace math{
- template<class T>
- [[deprecated("Replaced by C++11")]] inline std::complex<T> acosh(const std::complex<T>& z)
- {
-
-
-
-
-
- std::complex<T> result = boost::math::acos(z);
- if(!(boost::math::isnan)(result.imag()) && signbit(result.imag()))
- return detail::mult_i(result);
- return detail::mult_minus_i(result);
- }
- } }
- #endif
|