diff src/DLD-FUNCTIONS/gammainc.cc @ 11415:e7ed20f87e82

Add @tex blocks to gammainc and legendre docstrings.
author Michael Godfrey <godfrey@isl.stanford.edu>
date Sun, 26 Dec 2010 21:28:20 -0800
parents 89f4d7e294cc
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/gammainc.cc	Sat Dec 25 07:47:50 2010 -0800
+++ b/src/DLD-FUNCTIONS/gammainc.cc	Sun Dec 26 21:28:20 2010 -0800
@@ -41,20 +41,20 @@
 Compute the normalized incomplete gamma function,\n\
 @tex\n\
 $$\n\
- \\gamma (x, a) = {\\displaystyle\\int_0^x e^{-t} t^{a-1} dt \\over \\Gamma (a)}\n\
+ \\gamma (x, a) = {1 \\over {\\Gamma (a)}}\\displaystyle{\\int_0^x t^{a-1} e^{-t} dt}\n\
 $$\n\
 @end tex\n\
 @ifnottex\n\
 \n\
-@smallexample\n\
+@example\n\
 @group\n\
-                                x\n\
-                      1        /\n\
+                                 x\n\
+                       1        /\n\
 gammainc (x, a) = ---------    | exp (-t) t^(a-1) dt\n\
-                  gamma (a)    /\n\
-                            t=0\n\
+                   gamma (a)    /\n\
+                             t=0\n\
 @end group\n\
-@end smallexample\n\
+@end example\n\
 \n\
 @end ifnottex\n\
 with the limiting value of 1 as @var{x} approaches infinity.\n\
@@ -64,14 +64,14 @@
 for each element of @var{x} and vice versa.\n\
 \n\
 If neither @var{x} nor @var{a} is scalar, the sizes of @var{x} and\n\
-@var{a} must agree, and @var{gammainc} is applied element-by-element.\n\
+@var{a} must agree, and @code{gammainc} is applied element-by-element.\n\
 \n\
 By default the incomplete gamma function integrated from 0 to @var{x} is\n\
 computed.  If \"upper\" is given then the complementary function integrated\n\
-for @var{x} to infinity is calculated.  It should be noted that\n\
+from @var{x} to infinity is calculated.  It should be noted that\n\
 \n\
 @example\n\
-gammainc (@var{x}, @var{a}) = 1 - gammainc (@var{x}, @var{a}, \"upper\")\n\
+gammainc (@var{x}, @var{a}) @equiv{} 1 - gammainc (@var{x}, @var{a}, \"upper\")\n\
 @end example\n\
 @seealso{gamma, lgamma}\n\
 @end deftypefn")