Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-07-30 07:30:53


Author: pbristow
Date: 2007-07-30 07:30:53 EDT (Mon, 30 Jul 2007)
New Revision: 7585
URL: http://svn.boost.org/trac/boost/changeset/7585

Log:
enhanced example and output.
Text files modified:
   sandbox/math_toolkit/libs/math/example/error_handling_example.cpp | 7 +++----
   1 files changed, 3 insertions(+), 4 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-07-30 07:30:53 EDT (Mon, 30 Jul 2007)
@@ -12,7 +12,8 @@
 // domain_error - negative degrees of freedom argument
 // for student's t distribution CDF.
 
-// Uncomment this line to see the effect of changing policy.
+// Uncomment this line to see the effect of changing policy,
+// to ignore the error & return NaN instead of throwing an exception.
 // #define BOOST_MATH_DOMAIN_ERROR_POLICY ignore_error
 // Note that these policy #defines MUST preceed the #include of
 // any boost/math #includes.
@@ -68,9 +69,7 @@
 Example error handling using Student's t function.
 Probability of Student's t is 1.#QNAN
 
-Default behaviour without
-
-//#define BOOST_MATH_THROW_ON_DOMAIN_ERROR
+Default behaviour without:
 
 Example error handling using Student's t function.
 Message from thrown exception was:


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