Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:33

0001 //  (C) Copyright John Maddock 2005.
0002 //  Use, modification and distribution are subject to the
0003 //  Boost Software License, Version 1.0. (See accompanying file
0004 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 #ifndef BOOST_MATH_COMPLEX_ASINH_INCLUDED
0007 #define BOOST_MATH_COMPLEX_ASINH_INCLUDED
0008 
0009 #ifndef BOOST_MATH_COMPLEX_DETAILS_INCLUDED
0010 #  include <boost/math/complex/details.hpp>
0011 #endif
0012 #ifndef BOOST_MATH_COMPLEX_ASIN_INCLUDED
0013 #  include <boost/math/complex/asin.hpp>
0014 #endif
0015 
0016 namespace boost{ namespace math{
0017 
0018 template<class T> 
0019 [[deprecated("Replaced by C++11")]] inline std::complex<T> asinh(const std::complex<T>& x)
0020 {
0021    //
0022    // We use asinh(z) = i asin(-i z);
0023    // Note that C99 defines this the other way around (which is
0024    // to say asin is specified in terms of asinh), this is consistent
0025    // with C99 though:
0026    //
0027    return ::boost::math::detail::mult_i(::boost::math::asin(::boost::math::detail::mult_minus_i(x)));
0028 }
0029 
0030 } } // namespaces
0031 
0032 #endif // BOOST_MATH_COMPLEX_ASINH_INCLUDED