Navigation

Operators and Keywords

Function List:

C++ API

gammainc.cc File Reference

#include "lo-specfun.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "utils.h"

Include dependency graph for gammainc.cc:


Functions

 DEFUN_DLD (gammainc, args,,"-*- texinfo -*-\n\ @deftypefn {Mapping Function} {} gammainc (@var{x}, @var{a})\n\ Compute the normalized incomplete gamma function,\n\ @iftex\n\ @tex\n\ $$\n\ \\gamma (x, a) = {\\displaystyle\\int_0^x e^{-t} t^{a-1} dt \\over \\Gamma (a)}\n\ $$\n\ @end tex\n\ @end iftex\n\ @ifnottex\n\ \n\ @smallexample\n\ x\n\ 1 /\n\ gammainc (x, a) = --------- | exp (-t) t^(a-1) dt\n\ gamma (a) /\n\ t=0\n\ @end smallexample\n\ \n\ @end ifnottex\n\ with the limiting value of 1 as @var{x} approaches infinity.\n\ The standard notation is @math{P(a,x)}, e.g., Abramowitz and Stegun (6.5.1).\n\ \n\ If @var{a} is scalar, then @code{gammainc (@var{x}, @var{a})} is returned\n\ 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\ @seealso{gamma, lgamma}\n\ @end deftypefn")

Function Documentation

DEFUN_DLD ( gammainc  ,
args   
)