Ticket #7649: fix_comment_typo.patch

File fix_comment_typo.patch, 1.7 KB (added by oss.2012.team+C3@…, 10 years ago)

Patch for boost/math/constants/calculate_constants.hpp

  • boost/math/constants/calculate_constants.hpp

     
    157157   // This is the method described in:
    158158   // "Some New Algorithms for High-Precision Computation of Euler's Constant"
    159159   // Richard P Brent and Edwin M McMillan.
    160    // Mathematics of Comnputation, Volume 34, Number 149, Jan 1980, pages 305-312.
     160   // Mathematics of Computation, Volume 34, Number 149, Jan 1980, pages 305-312.
    161161   // See equation 17 with p = 2.
    162162   //
    163163   T n = 3 + (M ? (std::min)(M, tools::digits<T>()) : tools::digits<T>()) / 4;
     
    929929template<int N>
    930930inline T constant_rayleigh_kurtosis_excess<T>::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>))
    931931{ // - (6 Pi^2 - 24 Pi + 16)/((Pi - 4)^2)
    932     // Might provide provide and calculate this using pi_minus_four.
     932    // Might provide and calculate this using pi_minus_four.
    933933   BOOST_MATH_STD_USING
    934934   return - (((static_cast<T>(6) * pi<T, policies::policy<policies::digits2<N> > >()
    935935        * pi<T, policies::policy<policies::digits2<N> > >())
     
    944944template<int N>
    945945inline T constant_rayleigh_kurtosis<T>::compute(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>))
    946946{ // 3 - (6 Pi^2 - 24 Pi + 16)/((Pi - 4)^2)
    947   // Might provide provide and calculate this using pi_minus_four.
     947  // Might provide and calculate this using pi_minus_four.
    948948   BOOST_MATH_STD_USING
    949949   return static_cast<T>(3) - (((static_cast<T>(6) * pi<T, policies::policy<policies::digits2<N> > >()
    950950        * pi<T, policies::policy<policies::digits2<N> > >())