octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imagi


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #47738] expint is inaccurate for certain imaginary inputs
Date: Wed, 27 Apr 2016 17:35:59 +0000
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #6, bug #47738 (project octave):

SciPy uses the specfun Fortran library (unrelated to our specfun pkg)
corresponding to the book "Computation of Special Functions" by Zhang and
Jin.

Largest relative error I've seen in SciPy is 30*eps, which is still large but
at least better.  I'll look at the licensing (SciPy is BSD-style so should be
fine).  Or I can just reimplement the algorithm from their book.  But it has a
500 loop so might be better to compile it.

I need to look further into this anyway, because sinint and cosint are also
poor (cosint uses same implementation as expint but sinint has its own much
worse implementation which blows up for x>300:
https://github.com/cbm755/octsympy/issues/416)

I haven't tested Boost (@Mike do you know what accuracy they claim?  Does it
work for complex inputs?)

@Doug: it looks like the error could be as large as 2e-8, which looks poor.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47738>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]