Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-08-14 04:36:29


Author: pbristow
Date: 2007-08-14 04:36:26 EDT (Tue, 14 Aug 2007)
New Revision: 38645
URL: http://svn.boost.org/trac/boost/changeset/38645

Log:
update for polices
Text files modified:
   sandbox/math_toolkit/libs/math/example/error_handling_example.cpp | 19 +++++++++----------
   1 files changed, 9 insertions(+), 10 deletions(-)

Modified: sandbox/math_toolkit/libs/math/example/error_handling_example.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/error_handling_example.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/error_handling_example.cpp 2007-08-14 04:36:26 EDT (Tue, 14 Aug 2007)
@@ -12,12 +12,11 @@
 // and comments, don't change any of the special comment markups!
 
 //[error_handling_example
-
-/*`
+/*`
 The following example demonstrates the effect of
 setting the macro BOOST_MATH_DOMAIN_ERROR_POLICY
-when an invalid argument is encountered. For the
-purposes of this example we'll pass a negative
+when an invalid argument is encountered. For the
+purposes of this example, we'll pass a negative
 degrees of freedom parameter to the student's t
 distribution.
 
@@ -35,7 +34,7 @@
 To ensure the `::errno` is set when a domain error occurs
 as well as returning a NaN.
 
-This is safe provided the program consists of a single
+This is safe provided the program consists of a single
 translation unit /and/ we place the define /before/ any
 #includes. Note that should we add the define after the includes
 then it will have no effect! A warning such as:
@@ -68,13 +67,13 @@
 */
 
 int main()
-{
+{
    cout << "Example error handling using Student's t function. " << endl;
- cout << "BOOST_MATH_DOMAIN_ERROR_POLICY is set to: "
+ cout << "BOOST_MATH_DOMAIN_ERROR_POLICY is set to: "
       << BOOST_STRINGIZE(BOOST_MATH_DOMAIN_ERROR_POLICY) << endl;
 
    double degrees_of_freedom = -1; // A bad argument!
- double t = 10;
+ double t = 10;
 
    try
    {
@@ -109,7 +108,7 @@
 BOOST_MATH_DOMAIN_ERROR_POLICY is set to: throw_on_error
 
 Message from thrown exception was:
- Error in function boost::math::students_t_distribution<double>::students_t_distribution:
+ Error in function boost::math::students_t_distribution<double>::students_t_distribution:
    Degrees of freedom argument is -1, but must be > 0 !
 ]
 
@@ -141,4 +140,4 @@
 
 */
 
-//] end quickbook markup
+//] [error_handling_eg end quickbook markup]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk