Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ramshorns
· 4y ago · 0 comments
In that range, just returning x would be way better. Maybe even perfect actually - if x is less than 10^-16, then the error of x^3/6 is less than the machine precision for x.
Comments
[–]
adgjlsfhk1
4y ago
the error isn't when x is small. it's when sin(x) is small. the problem happens for x near multiples of pi