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

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

[Octave-bug-tracker] [bug #48307] sinc loses precision for large argumen


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments
Date: Tue, 28 Jun 2016 00:46:11 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Update of bug #48307 (project octave):

                  Status:         Patch Submitted => Invalid                

    _______________________________________________________

Follow-up Comment #11:

Dan, perhaps you missed the commends from Marco and me.  (I missed Marco's,
because it was sent at about the same time.)

If the argument is double, then we *can't* get better results than we
currently get, simply because the input doesn't have enough precision.  It is
a garbage-in-garbage-out problem, which can't be fixed by a better library
function.

Colin was initially assuming that the relative error should be of the order of
eps.  However, that is only true of approximately linear functions.  With
something like sin(), the absolute error for an argument x +/- eps is O(x *
eps), but the value is O(1) (i.e., doesn't get bigger as x does for large x),
and so the relative error scales up in proportion to x.

I'm marking this as "invalid", and will close it in a few days unless someone
convinces me that the above is wrong.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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