From 1490873b330c60ad465f63c19a75cd24f18f6f33 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe
Date: Tue, 6 Sep 2011 20:01:07 +0000
Subject: [PATCH] added documentation about error handling in user functions in
the userguide
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1165810 13f79535-47bb-0310-9956-ffa450edef68
---
src/site/xdoc/userguide/analysis.xml | 55 ++++++++++++++++++++++++++--
src/site/xdoc/userguide/index.xml | 9 +++--
2 files changed, 56 insertions(+), 8 deletions(-)
diff --git a/src/site/xdoc/userguide/analysis.xml b/src/site/xdoc/userguide/analysis.xml
index f8fc84b2f..c267b0c71 100644
--- a/src/site/xdoc/userguide/analysis.xml
+++ b/src/site/xdoc/userguide/analysis.xml
@@ -44,7 +44,54 @@
Possible future additions may include numerical differentiation.
-
+
+
+ For user-defined functions, when the method encounters an error
+ during evaluation, users must use their own unchecked exceptions.
+ The following example shows the recommended way to do that, using root
+ solving as the example (the same construct should be used for ODE
+ integrators or for optimizations).
+
+
+
+ As shown in this example the exception is really something local to user code
+ and there is a guarantee Apache Commons Math will not mess with it.
+ The user is safe.
+