annotate main/specfun/inst/cosint.m @ 2713:e69a683bfcf5 octave-forge

Initial commit into CVS.
author sis-sou
date Tue, 17 Oct 2006 11:32:30 +0000
parents
children 73fa4496fb07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2713
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
1 ## Copyright (C) 2006 Sissou <sylvain.pelissier@gmail.com>
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
2 ##
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
3 ## This program is free software; you can redistribute it and/or modify
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
4 ## it under the terms of the GNU General Public License as published by
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
5 ## the Free Software Foundation; either version 2 of the License, or
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
6 ## (at your option) any later version.
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
7 ##
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
8 ## This program is distributed in the hope that it will be useful,
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
11 ## GNU General Public License for more details.
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
12 ##
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
13 ## You should have received a copy of the GNU General Public License
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
14 ## along with this program; if not, write to the Free Software
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
16
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
17 ## COSINT compute the cosine integral function define by:
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
18 ##
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
19 ## Inf
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
20 ## /
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
21 ## cosint(x) = | cos(t)/t dt
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
22 ## /
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
23 ## x
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
24 ##
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
25 ##See also : Ci, Si, sinint, expint, expint_Ei.
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
26
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
27 function y = cosint(z)
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
28 if (nargin != 1)
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
29 usage ("cosint(x)");
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
30 endif
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
31 y = Ci(z);
e69a683bfcf5 Initial commit into CVS.
sis-sou
parents:
diff changeset
32 endfunction;