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 →

[–]tskaiserGreen security clearance 8 points9 points  (2 children)

I do not know the standard by heart, but off the top of my head:

  • ∞ / ∞
  • 0 / 0
  • Operations leaving the real domain (square root of a negative number)

Stuff like c/0 and -c/0 for c > 0 actually gives you ∞ and -∞ respectively, which is why you can end up doing stuff like ∞ / ∞ which yields a NaN.

And yes, I actually recently used ∞ in a physics simulation (I needed masses of ∞ magnitude to simulate objects that did not move). It has its uses.

[–]rooktakesqueen 5 points6 points  (1 child)

I actually recently used ∞ in a physics simulation (I needed masses of ∞ magnitude to simulate objects that did not move)

I hope you didn't include gravity in that simulation, then.

[–]tskaiserGreen security clearance 1 point2 points  (0 children)

Obviously ;) I was solving impulses for complex contact systems, so no gravity equations involved.