Hacker News
new
past
comments
ask
show
jobs
points
by
jcranmer
15 hours ago
|
comments
by
lacewing
15 hours ago
|
next
[-]
Commendable accuracy, too:
https://godbolt.org/z/s9haz611Y
reply
by
chrismorgan
13 hours ago
|
prev
|
[-]
Here’s a diagram that very visibly shows the error: <
https://www.wolframalpha.com/input?i=plot+y+%3D+sin%28x%29%2...
>. And that’s even without accumulated float error if you start outside the range [−π, π] (huge numbers will just be
wildly
wrong).
reply