annotate DEPENDENCIES/generic/include/boost/math/complex/asinh.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // (C) Copyright John Maddock 2005.
Chris@16 2 // Use, modification and distribution are subject to the
Chris@16 3 // Boost Software License, Version 1.0. (See accompanying file
Chris@16 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5
Chris@16 6 #ifndef BOOST_MATH_COMPLEX_ASINH_INCLUDED
Chris@16 7 #define BOOST_MATH_COMPLEX_ASINH_INCLUDED
Chris@16 8
Chris@16 9 #ifndef BOOST_MATH_COMPLEX_DETAILS_INCLUDED
Chris@16 10 # include <boost/math/complex/details.hpp>
Chris@16 11 #endif
Chris@16 12 #ifndef BOOST_MATH_COMPLEX_ASIN_INCLUDED
Chris@16 13 # include <boost/math/complex/asin.hpp>
Chris@16 14 #endif
Chris@16 15
Chris@16 16 namespace boost{ namespace math{
Chris@16 17
Chris@16 18 template<class T>
Chris@16 19 inline std::complex<T> asinh(const std::complex<T>& x)
Chris@16 20 {
Chris@16 21 //
Chris@16 22 // We use asinh(z) = i asin(-i z);
Chris@16 23 // Note that C99 defines this the other way around (which is
Chris@16 24 // to say asin is specified in terms of asinh), this is consistent
Chris@16 25 // with C99 though:
Chris@16 26 //
Chris@16 27 return ::boost::math::detail::mult_i(::boost::math::asin(::boost::math::detail::mult_minus_i(x)));
Chris@16 28 }
Chris@16 29
Chris@16 30 } } // namespaces
Chris@16 31
Chris@16 32 #endif // BOOST_MATH_COMPLEX_ASINH_INCLUDED