Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
adgjlsfhk1
3y ago
0 comments
Share
polynomials are still king. a 6th degree polynomial is often enough and will be faster than a 2nd degree rational.
0 comments
default
newest
oldest
pclmulqdq
3y ago
A 6th degree polynomial is firmly in the "fast approximation" category. I think sin/cos are ~15th degree polynomials for 1 ULP of precision.
adgjlsfhk1
OP
3y ago
sin/cos commonly use 2 different 5th degree polynomials (depending on quadrant of the sin graph)
https://github.com/JuliaLang/julia/blob/bb83df1d61fb649efd15...
moonchild
3y ago
https://github.com/rutgers-apl/The-RLIBM-Project/blob/main/l...
has a lot less and claims to be correctly rounded.
pclmulqdq
3y ago
For 32-bit float, yes. For double precision, not so much.
j
/
k
navigate · click thread line to collapse