Chris@16: // (C) Copyright John Maddock 2005. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_MATH_COMPLEX_ASINH_INCLUDED Chris@16: #define BOOST_MATH_COMPLEX_ASINH_INCLUDED Chris@16: Chris@16: #ifndef BOOST_MATH_COMPLEX_DETAILS_INCLUDED Chris@16: # include Chris@16: #endif Chris@16: #ifndef BOOST_MATH_COMPLEX_ASIN_INCLUDED Chris@16: # include Chris@16: #endif Chris@16: Chris@16: namespace boost{ namespace math{ Chris@16: Chris@16: template Chris@16: inline std::complex asinh(const std::complex& x) Chris@16: { Chris@16: // Chris@16: // We use asinh(z) = i asin(-i z); Chris@16: // Note that C99 defines this the other way around (which is Chris@16: // to say asin is specified in terms of asinh), this is consistent Chris@16: // with C99 though: Chris@16: // Chris@16: return ::boost::math::detail::mult_i(::boost::math::asin(::boost::math::detail::mult_minus_i(x))); Chris@16: } Chris@16: Chris@16: } } // namespaces Chris@16: Chris@16: #endif // BOOST_MATH_COMPLEX_ASINH_INCLUDED