Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48913 - sandbox/math_toolkit/libs/math/doc/sf_and_dist
From: john_at_[hidden]
Date: 2008-09-21 06:01:47


Author: johnmaddock
Date: 2008-09-21 06:01:46 EDT (Sun, 21 Sep 2008)
New Revision: 48913
URL: http://svn.boost.org/trac/boost/changeset/48913

Log:
Update docs to match changes to ellint_3.
Text files modified:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/ellint_legendre.qbk | 20 ++++++++------------
   1 files changed, 8 insertions(+), 12 deletions(-)

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/ellint_legendre.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/ellint_legendre.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/ellint_legendre.qbk 2008-09-21 06:01:46 EDT (Sun, 21 Sep 2008)
@@ -257,11 +257,6 @@
 
 [optional_policy]
 
-[caution In addition, the region where ['n > 1] and [phi][space] ['is not in the range]
-\[0, [pi]\/2\] is currently unsupported and returns the result of __domain_error.
-For this reason it is recomended that you keep [phi][space] inside its "natural" range
-of \[0, [pi]\/2\].]
-
   template <class T1, class T2>
   ``__sf_result`` ellint_3(T1 k, T2 n);
   
@@ -275,7 +270,7 @@
 Requires ['-1 <= k <= 1] and ['n < 1], otherwise returns the
 result of __domain_error (outside this range the result would be complex).
 
-[opitonal_policy]
+[optional_policy]
 
 [heading Accuracy]
 
@@ -322,7 +317,13 @@
 
 ['[Pi](n, -[phi], k) = -[Pi](n, [phi], k)]
 
-['[Pi](n, [phi]+m[pi], k) = [Pi](n, [phi], k) + 2m[Pi](n, k)]
+['[Pi](n, [phi]+m[pi], k) = [Pi](n, [phi], k) + 2m[Pi](n, k) ; n <= 1]
+
+['[Pi](n, [phi]+m[pi], k) = [Pi](n, [phi], k) ; n > 1]
+[footnote I haven't been able to find a literature reference for this
+relation, but it appears to be the convention used by Mathematica.
+Intuitively the first ['2 * m * [Pi](n, k)] terms cancel out as the
+derivative alternates between +[infin] and -[infin].]
 
 are used to move [phi][space] to the range \[0, [pi]\/2\].
 
@@ -335,9 +336,4 @@
 
 [equation ellint26]
 
-The remaining problem area occurs when n > 1 and [phi][space] is outside
-the range \[0, [pi]\/2\]. In this range the reduction formula for
-large [phi][space] can no longer be applied. Likewise the identities 17.7.7/8
-in A&S for reducing n to the range \[0,1\] appear to be no longer applicable.
-
 [endsect]


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