changeset 2433:6282bc648b1e octave-forge

error fixed
author sis-sou
date Sun, 03 Sep 2006 09:55:46 +0000
parents b171964e428e
children c201022e2d8f
files main/specfun/inst/expint.m
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main/specfun/inst/expint.m	Sun Sep 03 09:55:46 2006 +0000
@@ -0,0 +1,32 @@
+## Copyright (C) 2006   Sissou   <sylvain.pelissier@gmail.com>
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+## EXPINT compute the exponential integral,
+##
+##                    infinity
+##                   /
+##       expint(x) = | exp(t)/t dt
+##                   /
+##                  x
+##
+## See also expint_Ei, expint_E1.
+
+function y = expint(x)
+	if (nargin != 1)
+		usage ("expint(x)");
+	endif
+	y = expint_E1(x);
+endfunction;
\ No newline at end of file