|
From: | Doug Stewart |
Subject: | [Octave-bug-tracker] [bug #56414] sin function incorrect results when not slicing input |
Date: | Wed, 29 May 2019 10:44:56 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36 |
Follow-up Comment #1, bug #56414 (project octave): sin(o)=0 sin(pi)=0 sin(2*pi)=0 sin(30*pi)=0 So all your answers should be 0 What you are seeing is rounding errors because of binary representations. Also when you do -30:-20 it is not stored as [-30 -29 -28 ...-20] but is expanded when used. So you can see slightly different rounding errors from the 2 methods. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?56414> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |