Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
aardvark179
on March 7, 2024
|
parent
|
context
|
favorite
| on:
How do computers calculate sine?
Somewhat annoyingly the ascribe standard only specifies that various math functions return an approximation but does not set any bounds on that approximation. So for many functions you could just return NaN and still be compliant.
layer8
on March 7, 2024
[–]
Isn’t NaN the one value that can’t possibly count as an approximation, because it’s not a number and unordered? ;)
aardvark179
on March 7, 2024
|
parent
[–]
You might think so, but if it’s not specified in the standard…
zardo
on March 7, 2024
|
root
|
parent
|
next
[–]
It is the worst possible approximation though.
layer8
on March 7, 2024
|
root
|
parent
|
prev
[–]
I was submitting an interpretation of the standard.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: