annotate scripts/specfun/gammai.m @ 3444:fa0d84558faa

[project @ 2000-01-17 08:40:39 by jwe]
author jwe
date Mon, 17 Jan 2000 08:40:41 +0000
parents f8dde1807dee
children d25bc039237b
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
3444
fa0d84558faa [project @ 2000-01-17 08:40:39 by jwe]
jwe
parents: 3426
diff changeset
20 ## This function is provided for compatibility with older versions of
fa0d84558faa [project @ 2000-01-17 08:40:39 by jwe]
jwe
parents: 3426
diff changeset
21 ## Octave. New programs should use gammainc instead.
3426
f8dde1807dee [project @ 2000-01-13 08:40:00 by jwe]
jwe
parents: 3408
diff changeset
22 ##
3444
fa0d84558faa [project @ 2000-01-17 08:40:39 by jwe]
jwe
parents: 3426
diff changeset
23 ## gammai (a, x) is the same as gammainc (x, a).
3133
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
24
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
25 ## Author: jwe
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
26 ## Created: 30 Jan 1998
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
27
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
28 function retval = gammai (a, x)
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
29
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
30 if (nargin == 2)
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
31 retval = gammainc (x, a);
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
32 else
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
33 usage ("gammai (a, x)");
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
34 endif
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
35
812645c63072 [project @ 1998-01-30 21:23:00 by jwe]
jwe
parents:
diff changeset
36 endfunction