2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).

[SVN r68168]
This commit is contained in:
Steven Watanabe
2011-01-15 08:11:51 +00:00
parent a52fce70a8
commit 3524499fc0
99 changed files with 455 additions and 536 deletions

View File

@@ -15,9 +15,9 @@ using boost::math::inverse_chi_squared; //typedef for nverse_chi_squared_distrib
#include <iostream>
using std::cout; using std::endl;
#include <boost/detail/iomanip.hpp>
using boost::detail::setprecision;
using boost::detail::setw;
#include <iomanip>
using std::setprecision;
using std::setw;
#include <cmath>
using std::sqrt;
@@ -120,15 +120,15 @@ int main()
for (double x = 0.0; x < 1.; x += 0.1)
{
cout
<< boost::detail::setw(width) << x
<< ' ' << boost::detail::setw(width) << pdf(ichsq, x) // unscaled
<< ' ' << boost::detail::setw(width) << naive_pdf1(nu, x) // Wiki def 1 unscaled matches graph
<< ' ' << boost::detail::setw(width) << naive_pdf2(nu, x) // scale = 1 - 2nd definition.
<< ' ' << boost::detail::setw(width) << naive_pdf3(nu, 1/nu, x) // scaled
<< ' ' << boost::detail::setw(width) << naive_pdf4(nu, 1/nu, x) // scaled
<< ' ' << boost::detail::setw(width) << pdf(sichsq, x) // scaled
<< ' ' << boost::detail::setw(width) << cdf(sichsq, x) // scaled
<< ' ' << boost::detail::setw(width) << cdf(ichsq, x) // unscaled
<< setw(width) << x
<< ' ' << setw(width) << pdf(ichsq, x) // unscaled
<< ' ' << setw(width) << naive_pdf1(nu, x) // Wiki def 1 unscaled matches graph
<< ' ' << setw(width) << naive_pdf2(nu, x) // scale = 1 - 2nd definition.
<< ' ' << setw(width) << naive_pdf3(nu, 1/nu, x) // scaled
<< ' ' << setw(width) << naive_pdf4(nu, 1/nu, x) // scaled
<< ' ' << setw(width) << pdf(sichsq, x) // scaled
<< ' ' << setw(width) << cdf(sichsq, x) // scaled
<< ' ' << setw(width) << cdf(ichsq, x) // unscaled
<< endl;
}
}