[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48307] sinc loses precision for large argumen
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments |
Date: |
Mon, 4 Jul 2016 04:36:12 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
Follow-up Comment #12, bug #48307 (project octave):
> Colin was initially assuming that the relative error should be of the order
of eps.
> However, that is only true of approximately linear functions.
I'm not sure that is true.
> With something like sin(),
But this bug is not about sin. Sinc oscillates and decays. Some other
special functions oscillate and decay. For example, Besselj does and yet its
approximation has low relative error.
But anyway, regarding sin(): I don't think there is anything wrong with sin in
glibc (why are we even talking about that?!) sin's implementation has great
relative error! To me the example in comment #5 is fine. I think Marco has
already said so in comment #8: but just in case, note that the relative error
is of size eps in the calculation of sin(10000000*pi). This looks like
standard numerical analysis to me.
Of course maybe it is inherently hard to compute sinc for some reason---I said
initially that I'm no expert on special functions.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48307>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Lachlan Andrew, 2016/07/03
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments,
Colin Macdonald <=
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Lachlan Andrew, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Colin Macdonald, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Dan Sebald, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Lachlan Andrew, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Marco Caliari, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Marco Caliari, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Dan Sebald, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Lachlan Andrew, 2016/07/04
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Dan Sebald, 2016/07/05
- [Octave-bug-tracker] [bug #48307] sinc loses precision for large arguments, Colin Macdonald, 2016/07/05