Ticket #7415: boost_atanh_fix.patch
File boost_atanh_fix.patch, 1.1 KB (added by , 5 years ago) 


boost/math/special_functions/atanh.hpp
61 61 // Infinity: 62 62 return policies::raise_overflow_error<T>(function, 0, pol); 63 63 } 64 else if(x > 1  tools::epsilon<T>())65 {66 // Infinity:67 return policies::raise_overflow_error<T>(function, 0, pol);68 }69 64 else if(x > 1) 70 65 { 71 66 return policies::raise_domain_error<T>( 72 67 function, 73 68 "atanh requires x <= 1, but got x = %1%.", x, pol); 74 69 } 70 else if(x > 1  tools::epsilon<T>()) 71 { 72 // Infinity: 73 return policies::raise_overflow_error<T>(function, 0, pol); 74 } 75 75 else if(abs(x) >= tools::forth_root_epsilon<T>()) 76 76 { 77 77 // http://functions.wolfram.com/ElementaryFunctions/ArcTanh/02/