News for hackers. Stuff that matters.
Re:1/0 = 0 (2018) by iforgotpassword on Monday December 02, 2024 @03:07AM (#42294108)
If I have five apples and were to divide them among 0 people then nobody gets anything and I can eat them all, so the proper solution would be 5.
Re:1/0 = 0 (2018) by askvictor on Monday December 02, 2024 @03:44AM (#42294334)
Paraphrasing you: "If I have five apples and were to divide them among 0 people, how many does each person get?" This sums up one approach to this problem, and can be thought of in a more intuitive manner than the limit approach. The answer could be zero. Or 1. Or 37. In fact, any number makes as much sense as the question. Which is why either an exception is raised, (or +- Inf is returned for floats, but that's just the limit approach). But perhaps it would be more fun just to return a random number on divide by zero :)
Re:1/0 = 0 (2018) by Almondsetat on Monday December 02, 2024 @03:26AM (#42294243)
you can't divide the apples among 0 people and then claim to still have them, because in that case you would have divided them among 1 people
Re:1/0 = 0 (2018) by dmz73 on Monday December 02, 2024 @04:20AM (#42294499)
Like everything in life, it depends... For example: Storage has 5 items that need to be processed. 5 items need to be split equaly between available processes. There are currently 0 available processes so 5 / 0 = 0 items to be processed is more correct than either 5 or Nan or infinity.
Re:1/0 = 0 (2018) by Almondsetat on Monday December 02, 2024 @04:35AM (#42294583)
Your example is quite vague (e.g. are we dealing with an integer number of items and processes?) and in general if something looks kinda like a division it doesn't mean it is exactly division. Just like in math, we have the power to simply say: if COND -> divide normally, else -> do something else.
Re:1/0 = 0 (2018) by postalrat on Monday December 02, 2024 @11:49AM (#42297945)
And that's why the answer is 0.
Re:1/0 = 0 (2018) by glitchc on Monday December 02, 2024 @09:19AM (#42296467)
It's more like you had five apples and divided them among zero people, which means not even you get to keep them. They were thrown in the trash instead. The answer is zero.
Re:1/0 = 0 (2018) by washadjeffmad on Tuesday December 03, 2024 @07:09AM (#42305304)
A stateful expectation of existence is what the denominator describes, but if you forced it to describe people, then you'd phrase it as "how many (ghosts) could possess (any number of apples)?"

Which would be infinite, since ghosts occupy no space and can't interact with physical reality.

As a proportion, compared to nonexistence, any quantity of something is infinitely greater than nothing, so if not n/0, how would you express you expect not the absence of a thing, but its nonexistence?

Re:1/0 = 0 (2018) by marcosdumay on Monday December 02, 2024 @11:43AM (#42297878)
In other words, the quotient is 0, the reminder is 5?

That's an interesting solution...

Re:1/0 = 0 (2018) by butlike on Monday December 02, 2024 @01:39PM (#42298976)
I agree wholeheartedly. I think the issue stems from 0 meaning both 0 of "something"/"a concept" and "nil."

If I have 5 apples and divide them in to 0 buckets of apples, that makes sense. If I have 5 apples and divide them into 0 buckets of tractor; that doesn't make sense.