[PATCH] gamma_incomplete_regularized(a, 0) returns wrong noun form
Subject: [PATCH] gamma_incomplete_regularized(a, 0) returns wrong noun form
From: Raymond Toy
Date: Thu, 21 Feb 2013 20:56:57 -0800
Thanks for the patch. It looks fine and I've committed it now.
It's a bug in rtest_gamma.mac that this was not caught earlier. This
should be fixed, but I don't know how to fix that.
Ray
On Thu, Feb 21, 2013 at 5:03 PM, Kris Katterjohn <katterjohn at gmail.com>wrote:
> 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
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>