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: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich 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 (http://hg.savannah.gnu.org/hgweb/octave/rev/f10b7a578e2c). I also added some tests in mappers.cc 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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Oct 2013 02:25:51 AM UTCrik5StatusNone=>Done
      Open/ClosedOpen=>Closed
    Tue 02 Jul 2013 01:31:26 PM UTCcraighudsonAttached File-=>Added changeset.diff, #28478
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup