changeset 12658:08f8fc1e9872 stable

betainc.cc: Correctly refer to function as regularized incomplete Beta function. * betainc.cc: Fix documentation spacing in INFO mode. Use I, standard symbol for regularized version of function, rather than Beta in texinfo.
author Rik <octave@nomad.inbox5.com>
date Tue, 10 May 2011 12:46:11 -0700
parents 234e2c4aaec8
children 8673b08a52bf
files src/DLD-FUNCTIONS/betainc.cc
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/betainc.cc	Mon May 09 17:59:44 2011 -0700
+++ b/src/DLD-FUNCTIONS/betainc.cc	Tue May 10 12:46:11 2011 -0700
@@ -35,10 +35,10 @@
 DEFUN_DLD (betainc, args, ,
   "-*- texinfo -*-\n\
 @deftypefn {Mapping Function} {} betainc (@var{x}, @var{a}, @var{b})\n\
-Return the incomplete Beta function,\n\
+Return the regularized incomplete Beta function,\n\
 @tex\n\
 $$\n\
- \\beta (x, a, b) = B (a, b)^{-1} \\int_0^x t^{(a-z)} (1-t)^{(b-1)} dt.\n\
+ I (x, a, b) = {1 \\over {B (a, b)}} \\int_0^x t^{(a-z)} (1-t)^{(b-1)} dt.\n\
 $$\n\
 @end tex\n\
 @ifnottex\n\
@@ -46,11 +46,12 @@
 \n\
 @smallexample\n\
 @group\n\
-                                      x\n\
-                                     /\n\
-betainc (x, a, b) = beta (a, b)^(-1) | t^(a-1) (1-t)^(b-1) dt.\n\
-                                     /\n\
-                                  t=0\n\
+@c spacing appears odd here, but is correct after Makeinfo\n\
+                                     x\n\
+                          1         /\n\
+betainc (x, a, b) = -----------    | t^(a-1) (1-t)^(b-1) dt.\n\
+                     beta (a, b)    /\n\
+                                 t=0\n\
 @end group\n\
 @end smallexample\n\
 \n\