Ticket #2502: p_square_cumulative_distribution.cpp.patch
File p_square_cumulative_distribution.cpp.patch, 574 bytes (added by , 14 years ago) |
---|
-
p_square_cumulative_distribution.cpp
old new 63 63 { 64 64 // problem with small results: epsilon is relative (in percent), not absolute! 65 65 if ( histogram[i].second > 0.001 ) 66 BOOST_CHECK_CLOSE( 0.5 * (1.0 + my_erf( histogram[i].first / s qrt(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 ); 67 67 } 68 68 } 69 69