TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Floating-Point Determinism (2013)

57 pointsby pietroglyphalmost 7 years ago

4 comments

straineralmost 7 years ago
I rewrote the main trig functions in Javascript to help with cross browser determinism. They run as quickly as the native math routines while compromising accuracy to around 10 significant digits.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;strainer&#x2F;trigfills" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;strainer&#x2F;trigfills</a>
ch33zeralmost 7 years ago
Excellent article. It&#x27;s so easy to think &quot;same inputs = same outputs&quot; but that&#x27;s such a simplification. There&#x27;s so much more in between!
gbrown_almost 7 years ago
For anyone interested in this sort of thing you&#x27;d probably also be interested in John Gustafson&#x27;s work on unums&#x2F;posits. Here&#x27;s a nice introductory presentation <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=aP0Y1uAA-2Y" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=aP0Y1uAA-2Y</a>
olliejalmost 7 years ago
I’m glad it pointed to the article of the terrible accuracy of the x87 trig functions - the OS X and I assume GCC software implementations are ostensibly correctly accurate, which I think is done by using witchcraft. (More precisely I think they do it using infinite precision Pi?)
评论 #17343594 未加载