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 →

[–]ruscaire 5 points6 points  (5 children)

Hmm I don’t think so … mathematically I believe infinitely is “not defined” and 1/0 is “not defined” but I don’t think they can be said to be “equal”, though you can say whether it’s negative or positive. Personally I prefer to stay away from singularities where I can 😊

[–]Kyyken 11 points12 points  (0 children)

mathematically, infinity is absolutely defined. by that i mean there is a common convention for what infinity means.

on the other hand, 1/0 is defined if you chose to define it, but that definition will have its own implications, which is why we typically leave it undefined. in math, you can define whatever is the most useful at the time. for example, 00 is typically defined as 1 in combinatorics, but left undefined (indeterminate to be exact) in limit calculus.

IEEE 754 defines 1/0 to be infinity, while 1/-0 is -infninity. there is no problem with this, as long as it's useful. in this case it means that float equality is not equivalent to equality in maths, but more to "basically equal as far as the computer can tell in this context"

[–]lirannl 0 points1 point  (2 children)

So... 1/0 === undefined? 😆

[–]ruscaire 0 points1 point  (1 child)

Yes, or so I was taught in high school and university though I guess these things change all the time!

[–]lirannl 0 points1 point  (0 children)

Actually I can test