this post was submitted on 06 Dec 2023
60 points (77.8% liked)

Videos

14346 readers
178 users here now

For sharing interesting videos from around the Web!

Rules

  1. Videos only
  2. Follow the global Mastodon.World rules and the Lemmy.World TOS while posting and commenting.
  3. Don't be a jerk
  4. No advertising
  5. No political videos, post those to [email protected] instead.
  6. Avoid clickbait titles. (Tip: Use dearrow)
  7. Link directly to the video source and not for example an embedded video in an article or tracked sharing link.
  8. Duplicate posts may be removed

Note: bans may apply to both [email protected] and [email protected]

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] dohpaz42 -4 points 11 months ago (6 children)

If I have one whole pizza, and I divide it zero times, then wouldn’t I still have one whole pizza? I.e., shouldn’t 1 / 0 = 1?

[–] BradleyUffner 30 points 11 months ago* (last edited 11 months ago) (3 children)

That's not what division is though. Division, at least when talking about splitting a pizza, has 2 options.

The first is splitting it into X equal parts. If you split a pizza into 0 equal parts, how large is each part?

The other option with pizza would be to say you are splitting into some unknown number of slices of a specific size. if you split a pizza in to slices that are 0 inches wide, how many slices do you get?

Neither method gives any logical result when using 0 with regards to pizza.

[–] dohpaz42 3 points 11 months ago (2 children)

I'm not super great at math, and the concept of division by zero has been somewhat confusing for me. It's also been a bane to my existence as a programmer. To me, in both scenarios, it makes sense to get back the original number, because 0 equal parts and zero inches wide leaves the original pizza untouched. But I also accept that there are much smarter folks out there who know better than I do, so undefined or NaN is what it is.

Thanks though for explaining it!

[–] sosodev 8 points 11 months ago

The easiest way to explain divide by zero is to think of division as repeated subtraction. For a simple example of 4 / 2 we know that we would have to subtract 2 from 4 twice to reduce it to 0.

When we divide by zero we’re functionally asking how many times can we remove zero from the numerator until it is reduced to zero. We typically state the answer as infinity or NaN because we know that we could do this operation indefinitely without the numerator reducing to 0.

load more comments (1 replies)
load more comments (1 replies)
load more comments (3 replies)