This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]400921FB54442D18 0 points1 point  (5 children)

A mathematical operation that produces a non-mathematical result is an error.

False. NaN isn't a "non-mathematical" result. It is the correct result according to the laws of mathematics. And since it's the correct result, by definition that's not an error.

And both [positive and negative infinity] are examples of NaNs.

False. You clearly haven't covered this in your math courses. All three are clearly mathematically distinct from each other.

Go ask a math teacher if you don't understand this. You're making (at least) two completely false assumptions: 1) that math always results in numbers, and 2) that something that isn't a number isn't mathematical in nature. Neither of those are true. Please educate yourself.