4 Sep 23:45
Complex Bigfloats for the Gamma function
From: Dieter Kaiser <drdieterkaiser <at> web.de>
Subject: Complex Bigfloats for the Gamma function
Newsgroups: gmane.comp.mathematics.maxima.general
Date: 2008-09-04 21:47:51 GMT
Subject: Complex Bigfloats for the Gamma function
Newsgroups: gmane.comp.mathematics.maxima.general
Date: 2008-09-04 21:47:51 GMT
I have added support for Complex Bigfloat values to the Gamma function. With
this extension the Gamma function would have complete numerical support.
With Complex Bigfloats for the Gamma function it is possible to support complete
Complex Bigfloat evaluation for the Exponential Integral E(n,z) too.
I have rewritten the functions bbfac and cbfac in Lisp and called them
bfloat-factorial and complex-bfloat-factorial. What do you think? Should we use
the rewritten Lisp functions and not the Maxima functions?
I have tested the Gamma function with Bigfloats up to a precision of 64 digits
against functions.wolfram.com and against the original Maxima functions bffac
and cbffac.
Both GCL 2.6.8 and CLISP 2.46 have no problems. The testsuite runs without
errors.
Dieter Kaiser
Index: csimp2.lisp
===================================================================
RCS file: /cvsroot/maxima/maxima/src/csimp2.lisp,v
retrieving revision 1.21
diff -u -r1.21 csimp2.lisp
--- csimp2.lisp 14 Feb 2008 01:31:37 -0000 1.21
+++ csimp2.lisp 4 Sep 2008 21:18:38 -0000
@@ -180,12 +180,17 @@
(jr ($realpart j))
(ji ($imagpart j)))
(cond ((floatp j) (gammafloat j))
(Continue reading)
RSS Feed