Ticket #6171: acosh.patch

File acosh.patch, 682 bytes (added by Richard B. Kreckel <kreckel@…>, 11 years ago)
  • acosh.hpp

    diff -wu boost-trunk/boost/math/complex/acosh.hpp boost-rbk/boost/math/complex//acosh.hpp
    old new  
    2424   // as well as compatibility with C99.
    2525   //
    2626   std::complex<T> result = boost::math::acos(z);
    27    if(!(boost::math::isnan)(result.imag()) && signbit(result.imag()))
     27   if(!(boost::math::isnan)(z.imag()) && !signbit(z.imag()))
    2828      return detail::mult_i(result);
    2929   return detail::mult_minus_i(result);
    3030}