patchGNU Octave - Patches: patch #8250, OF gsl package: improve...


patch #8250: OF gsl package: improve performance of Si.m

Submitted by:  None
Submitted on:  Sun 01 Dec 2013 09:17:22 PM UTC  
Category: Forge : otherPriority: 5 - Normal
Status: Wont DoPrivacy: Public
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: Closed

Add a New Comment(Rich Markup)

You are not logged in

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


Tue 10 Apr 2018 06:20:00 AM UTC, comment #2:

Closing old obsolete patch. The sinint function is part of Octave version 4.4.

Mike Miller <mtmiller>
Project Administrator
Mon 02 Dec 2013 08:55:19 PM UTC, comment #1:

Are you sure this is really from the GSL package? I'll just paste here what I wrote on the original bug report:

I'm guessing this a replacement for the Si function in the specfun package and not gsl since it still bears the copyright for that file. It's actually bad that SI is implemented (most likely differently) in two different packages (but that will be fixed soon).

If this is a patch for the specfun package: the Si function has been deprecated and replaced by sinint. Could you please provide us with a patch against the development version of sinint

If this is a patch for the gsl package: the gsl package aims at being a wrapper for the GSL library. This a m file and not compatible with it, and therefore not acceptable.

Carnë Draug <carandraug>
Project Member
Sun 01 Dec 2013 09:17:22 PM UTC, original submission:

The Si Function is rather slow, and it produces spurious values.

> plot(Si(-100:0.1:100))
> plot(real(Si(-100:0.1:100)))

(shows complex components)

> plot(Si(0:0.3:400))


The attached file improves Performance and is correct over all reals. It contains the old implementation to treat complex cases.



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

Attach File(s):

Attached Files
file #29752:  Si.m added by None (4KiB - text/x-objcsrc)


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (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 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
    Tue 10 Apr 2018 06:20:00 AM UTCmtmillerCategoryNone=>Forge : other
      StatusNone=>Wont Do
    Sun 01 Dec 2013 09:17:22 PM UTCNoneAttached File-=>Added Si.m, #29752

    Back to the top

    Powered by Savane 3.1-cleanup1