patchGNU Octave - Patches: patch #8101, Correct return values of gamma()...


patch #8101: Correct return values of gamma() (see Numerical, item 3 on Projects page)

Submitted by:  Craig Hudson <craighudson>
Submitted on:  Tue 02 Jul 2013 01:31:26 PM UTC  
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 21 Oct 2013 02:25:51 AM UTC, comment #1:

I applied your patch here ( I also added some tests in for the new return values for exceptional inputs. This will all be part of the 3.8 release due in a few weeks. Thanks for contributing.

Rik <rik5>
Project Administrator
Tue 02 Jul 2013 01:31:26 PM UTC, original submission:

gamma(x) returns NaN for x = negative integer or -Inf
Returns -Inf for x = -0 or if result overflows and is negative
Both of these are the same return values as tgamma() in <math.h>

Craig Hudson <craighudson>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #28478:  changeset.diff added by craighudson (2KiB - text/x-patch - Changeset for liboctave/numeric/


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by craighudson (Submitted the item)
  • -email is unavailable- added by craighudson (Octave patch (gamma))

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-10-21 rik5 StatusNone => Done
        Open/ClosedOpen => Closed
    2013-07-02 craighudson Attached File- => Added changeset.diff, #28478
        Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.3