News for hackers. Stuff that matters.
Re:1/0 = 0 (2018) by lupire on Sunday December 01, 2024 @03:50PM (#42290641)
It's fine. Infinity isn't a real number, so 1/x isn't continuous at 0, so it doesn't matter what the value of 1/0 is. All your open sets still behave the way you expect. Whether you choose "this function is undefined here" vs "it's impossible to ever reach the value of this function at this value, under any assumptions I'll ever care about" is purely a matter of convenience.
Re:1/0 = 0 (2018) by rsp1984 on Sunday December 01, 2024 @04:24PM (#42290837)
Yea, but conceptually it's a bit smelly to have f(x) get larger and larger the closer x is to 0 and then suddenly have it be 0 once x reaches 0.
Re:1/0 = 0 (2018) by renewiltord on Monday December 02, 2024 @12:13AM (#42293326)
But once you go behind, it flips suddenly anyway so you could just as well have it be intuitively “halfway between the positive and negative infinities” which is at least fun and could spawn a few “Why is 1/x suddenly go to zero” articles on HN in 2053
Re:1/0 = 0 (2018) by _carbyau_ on Monday December 02, 2024 @12:57AM (#42293523)
As others have pointed out "larger and larger" is the same when it is negative too. So I think people are just going: positive infinity + negative infinity = 0.

Intuitively nice in a sense but I honestly think '0' is misrepresenting what is going on here. I'm ok with it being ' "+ and/or -" infinity' as a new definition.

Programmatically I think it should result in a NULL or VOID or similar. I mean, by definition it has no definition.

Re:1/0 = 0 (2018) by rsp1984 on Monday December 02, 2024 @06:42AM (#42295228)
Good point.
Re:1/0 = 0 (2018) by Turneyboy on Monday December 02, 2024 @01:33PM (#42298911)
Well if you consider 1/z as a function of a complex coordinate it definitely makes a lot of sense to set it to infty. That identifies +infty and -infty if you restrict yourself to the real numbers.