mirror of
https://github.com/boostorg/math.git
synced 2026-01-19 04:22:09 +00:00
same as for acos.hpp: fixed license reference text; slight changes to comments to avoid spurious inspect tool warnings
[SVN r34711]
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// (C) Copyright John Maddock 2005.
|
||||
// Use, modification and distribution are subject to the
|
||||
// Boost Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#ifndef BOOST_MATH_COMPLEX_ASIN_INCLUDED
|
||||
#define BOOST_MATH_COMPLEX_ASIN_INCLUDED
|
||||
@@ -114,7 +113,7 @@ inline std::complex<T> asin(const std::complex<T>& z)
|
||||
// Figure out if our input is within the "safe area" identified by Hull et al.
|
||||
// This would be more efficient with portable floating point exception handling;
|
||||
// fortunately the quantities M and u identified by Hull et al (figure 3),
|
||||
// match with the max() and min() methods of numeric_limits<T>.
|
||||
// match with the max and min methods of numeric_limits<T>.
|
||||
//
|
||||
T safe_max = detail::safe_max(static_cast<T>(8));
|
||||
T safe_min = detail::safe_min(static_cast<T>(4));
|
||||
@@ -199,8 +198,8 @@ inline std::complex<T> asin(const std::complex<T>& z)
|
||||
//
|
||||
// E^2 > 8*sqrt(u); with:
|
||||
//
|
||||
// E = std::numeric_limits<T>::epsilon()
|
||||
// u = std::numeric_limits<T>::min()
|
||||
// E = std::numeric_limits<T>::epsilon()
|
||||
// u = (std::numeric_limits<T>::min)()
|
||||
//
|
||||
// Hull et al provide alternative code for "bad" machines
|
||||
// but we have no way to test that here, so for now just assert
|
||||
|
||||
Reference in New Issue
Block a user