Ticket #2502: p_square_cumulative_distribution.cpp.patch

File p_square_cumulative_distribution.cpp.patch, 574 bytes (added by li51ckf02@…, 14 years ago)
  • p_square_cumulative_distribution.cpp

    old new  
    6363    {
    6464        // problem with small results: epsilon is relative (in percent), not absolute!
    6565        if ( histogram[i].second > 0.001 )
    66             BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram[i].first / sqrt(2.0) )), histogram[i].second, epsilon );
     66            BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram[i].first / std::sqrt(2.0) )), histogram[i].second, epsilon );
    6767    }
    6868}
    6969