[PATCH] gamma_incomplete_regularized(a, 0) returns wrong noun form
Subject: [PATCH] gamma_incomplete_regularized(a, 0) returns wrong noun form
From: Kris Katterjohn
Date: Thu, 21 Feb 2013 19:03:14 -0600
Hi everyone,
When calling gamma_incomplete_regularized(a,0),
simp-gamma-incomplete-regularized in gamma.lisp checks the sign of a. It
gives an error if Re(a)<=0, and it returns 1 if Re(a)>0. However, if not
enough is known about the sign of a, an incorrect noun form is returned:
(%i2) gamma_incomplete_regularized(a,0);
(%o2) gamma_incomplete(a,0)
It looks like commit b074ab1203c3 from Feb 2010 fixed an identical issue
(presumably from copy-and-pasting) inside $gamma_incomplete_regularized.
I've attached a simple patch to fix this. Also in this patch is a fix for the
same problem happening in another part of the function (I just found this one
while looking at the other one). with this, the testsuite ran without error.
Let me know what you think.
Cheers,
Kris Katterjohn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gamma.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130221/3ef5ad3a/attachment.bin>