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

 
 

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

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Tue 08 Jun 2010 11:08:52 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project MemberIn charge of this item.
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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by siko1056 (Updated the item)
  • -unavailable- added by dbateman (Updated the item)
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    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 project members can vote.

     

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

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Sep 2015 02:40:32 PM UTCsiko1056StatusPatch Submitted=>Fixed
    Fri 11 Jun 2010 11:01:12 PM UTCdbatemanAssigned toNone=>dbateman
      Open/ClosedOpen=>Closed
    Fri 11 Jun 2010 11:00:38 PM UTCdbatemanAttached File-=>Added patch.gammainc, #20738
      StatusNone=>Patch Submitted
    Tue 08 Jun 2010 11:49:59 PM UTCjweSummarygammainc does not accept the 3rd arg (as Matlab does)=>Feature request: gammainc does not accept the 3rd arg (as Matlab does)
    Tue 08 Jun 2010 11:49:03 PM UTCjweItem GroupNone=>Feature Request

    Back to the top


    Powered by Savane 3.1-cleanup1