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