annotate scripts/specfun/gammai.m @ 3458:d25bc039237b

[project @ 2000-01-19 09:36:14 by jwe]
author jwe
date Wed, 19 Jan 2000 09:36:28 +0000
parents fa0d84558faa
children 4c8a2e4e0717
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3133
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
1 ## Copyright (C) 1998 John W. Eaton
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
2 ##
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
4 ##
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
7 ## the Free Software Foundation; either version 2, or (at your option)
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
8 ## any later version.
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
9 ##
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
14 ##
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, write to the Free
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
17 ## Software Foundation, 59 Temple Place - Suite 330, Boston, MA
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
18 ## 02111-1307, USA.
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
19
3458
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
20 ## -*- texinfo -*-
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
21 ## @deftypefn {Function File} {} gammai (@var{a}, @var{x})
3444
fa0d84558faa [project @ 2000-01-17 08:40:39 by jwe]
jwe
parents: 3426
diff changeset
22 ## This function is provided for compatibility with older versions of
3458
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
23 ## Octave. New programs should use @code{gammainc} instead.
3426
f8dde1807dee [project @ 2000-01-13 08:40:00 by jwe]
jwe
parents: 3408
diff changeset
24 ##
3458
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
25 ## @code{gammai (@var{a}, @var{x})} is the same as @code{gammainc
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
26 ## (@var{x}, @var{a})}.
d25bc039237b [project @ 2000-01-19 09:36:14 by jwe]
jwe
parents: 3444
diff changeset
27 ## @end deftypefn
3133
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
28
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
29 ## Author: jwe
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
30 ## Created: 30 Jan 1998
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
31
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
32 function retval = gammai (a, x)
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
33
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
34 if (nargin == 2)
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
35 retval = gammainc (x, a);
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
36 else
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
37 usage ("gammai (a, x)");
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
38 endif
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
39
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
40 endfunction