mirror of
https://github.com/boostorg/math.git
synced 2026-01-28 07:22:12 +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:
@@ -33,12 +33,11 @@ First, we need to be able to use the binomial distribution constructor
|
||||
#include <boost/math/distributions/binomial.hpp>
|
||||
using boost::math::binomial;
|
||||
|
||||
#include <ios>
|
||||
#include <iostream>
|
||||
using std::cout; using std::endl;
|
||||
using std::ios; using std::flush; using std::left; using std::right; using std::fixed;
|
||||
#include <boost/detail/iomanip.hpp>
|
||||
using boost::detail::setw; using boost::detail::setprecision;
|
||||
#include <iomanip>
|
||||
using std::setw; using std::setprecision;
|
||||
#include <exception>
|
||||
using std::exception;
|
||||
|
||||
@@ -94,7 +93,7 @@ We can tabulate the 'getting exactly right' ( == ) probabilities thus:
|
||||
for (int successes = 0; successes <= questions; successes++)
|
||||
{
|
||||
double probability = pdf(quiz, successes);
|
||||
cout << boost::detail::setw(2) << successes << " " << probability << endl;
|
||||
cout << setw(2) << successes << " " << probability << endl;
|
||||
}
|
||||
cout << endl;
|
||||
/*`
|
||||
@@ -191,7 +190,7 @@ Finally we can tabulate some probabilities:
|
||||
cout << "\n" "At most (<=)""\n""Guessed OK Probability" << right << endl;
|
||||
for (int score = 0; score <= questions; score++)
|
||||
{
|
||||
cout << boost::detail::setw(2) << score << " " << boost::detail::setprecision(10)
|
||||
cout << setw(2) << score << " " << setprecision(10)
|
||||
<< cdf(quiz, score) << endl;
|
||||
}
|
||||
cout << endl;
|
||||
@@ -221,7 +220,7 @@ Guessed OK Probability
|
||||
cout << "\n" "At least (>)""\n""Guessed OK Probability" << right << endl;
|
||||
for (int score = 0; score <= questions; score++)
|
||||
{
|
||||
cout << boost::detail::setw(2) << score << " " << boost::detail::setprecision(10)
|
||||
cout << setw(2) << score << " " << setprecision(10)
|
||||
<< cdf(complement(quiz, score)) << endl;
|
||||
}
|
||||
/*`
|
||||
|
||||
Reference in New Issue
Block a user