Mercurial > hg > octave-lyh
diff scripts/deprecated/gammai.m @ 11151:0c38b45ab49c
Deprecate betai, gammai, is_global functions.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 24 Oct 2010 07:28:43 -0700 |
parents | scripts/specfun/gammai.m@a1dbe9d80eee |
children | fd0a3ac60b0e |
line wrap: on
line diff
copy from scripts/specfun/gammai.m copy to scripts/deprecated/gammai.m --- a/scripts/specfun/gammai.m +++ b/scripts/deprecated/gammai.m @@ -22,14 +22,22 @@ ## This function is provided for compatibility with older versions of ## Octave. New programs should use @code{gammainc} instead. ## -## @code{gammai (@var{a}, @var{x})} is the same as @code{gammainc -## (@var{x}, @var{a})}. +## @code{gammai (@var{a}, @var{x})} is the same as +## @code{gammainc (@var{x}, @var{a})}. ## @end deftypefn ## Author: jwe ## Created: 30 Jan 1998 +## Deprecated in version 3.4 + function retval = gammai (a, x) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "gammai is obsolete and will be removed from a future version of Octave; please use gammainc instead"); + endif if (nargin == 2) retval = gammainc (x, a);