2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 07:22:12 +00:00

Merged changes in Trunk.

[SVN r40161]
This commit is contained in:
John Maddock
2007-10-18 18:05:13 +00:00
parent 6d989d0a4a
commit 722a2d848d
234 changed files with 3373 additions and 2157 deletions

View File

@@ -23,11 +23,11 @@ using boost::math::students_t; // Probability of students_t(df, t) convenience
// std
#include <iostream>
using std::cout;
using std::endl;
using std::cout;
using std::endl;
#include <stdexcept>
using std::exception;
using std::exception;
using boost::math::policies::policy;
using boost::math::policies::domain_error;
@@ -43,7 +43,7 @@ typedef students_t_distribution<double, my_policy> my_students_t;
int main()
{ // Example of error handling of bad argument(s) to a distribution.
cout << "Example error handling using Student's t function. " << endl;
cout << "Example error handling using Student's t function. " << endl;
double degrees_of_freedom = -1; double t = -1.; // Two 'bad' arguments!
@@ -71,7 +71,7 @@ int main()
"\n""Message from thrown exception was:\n " << e.what() << std::endl;
}
return 0;
return 0;
} // int main()
/*