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