bugGNU Octave - Bugs: bug #30088, Feature request: gammainc does not...

 
 

bug #30088: Feature request: gammainc does not accept the 3rd arg (as Matlab does)

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 08 Jun 2010 11:08:52 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  dbateman
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 11 Jun 2010 11:00:38 PM UTC, comment #1: 

The changeset attached that I committed should add this functionality. However if gammainc(x,a) is close to 1 then perhaps this will be unstable. For example consider "1 - gammainc(1e6,1e-7)", this should be a small value rather than 0 as given by this implementation

D.


(file #20738)

David Bateman <dbateman>
Group Member
Tue 08 Jun 2010 11:08:52 PM UTC, original submission:  

Matlab's version of gammainc(x,a) may accept a third argument.

gammainc(x,a,"lower") is equivalent to gammainc(x,a). While gammainc(x,a,"upper") is equal to 1-gammainc(x,a,"lower").

Essentially, "lower" refers the integrating over the bounds of 0 to x. While "upper" refers to integrating over the bounds of x to infinity.

Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #20738:  patch.gammainc added by dbateman (5KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by dbateman (Updated the item)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by bpabbott (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-28 siko1056 StatusPatch Submitted Fixed
    2010-06-11 dbateman Assigned toNone dbateman
        Open/ClosedOpen Closed
    2010-06-11 dbateman Attached File- Added patch.gammainc, #20738
        StatusNone Patch Submitted
    2010-06-08 jwe Summarygammainc does not accept the 3rd arg (as Matlab does) Feature request: gammainc does not accept the 3rd arg (as Matlab does)
    2010-06-08 jwe Item GroupNone Feature Request

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code