• Max-P
    link
    fedilink
    351 year ago

    The key is understanding how divisions between 0 and 1 work. Say you take 2/0.5, you end up with 4. 2/0.25 you end up with 8. As you can see, those numbers get big fast. 1/0.0001 is 10,000.

    As you approach 0, you get increasingly large numbers. If you flip it negative, again as you approach -0, you have increasingly big negative numbers. As you approach 0 from both sides, you approach positive and negative infinity. But what goes in the middle, at exactly zero? We don’t know, There’s no sensible value there, so it’s considered to be undefined.

    In computers, it’s usually either an error, or represented with NaN (Not a Number) when you want to avoid throwing an error condition. NaN is defined so that any operations involving NaN is also NaN, so your entire equation becomes NaN.

    Easiest way to visualize that is to input y = 1/x in a graph calculator (Desmos is nice). You clearly see it going to negative infinity then back at positive infinity.

    With some other operations like negative square roots, we’ve made up the imaginary number i, which is defined to be the square root of -1, and we can make it do useful things. But what can we reasonably do with the result of dividing by zero? It behaves like infinities: you can’t really add or multiply them, or divide them. You’re just stuck with it. It’s impossible to represent, it’s Not a Number.

    • @[email protected]
      link
      fedilink
      3
      edit-2
      1 year ago

      And an important note about imaginary numbers is there more of a band aid solution because we chose to lose information when doing positive exponentials, when in reality both positive and negative answers are equally valid mathematically (though sometimes not physically).

      So math doesn’t care about our conventions and sometimes we need that information back, hence complex numbers.

      Multiplying anything times 0 = 0 though doesn’t just have 2 possible outcomes, it has infinite for the variable multiplied. With such aggressive information loss its usually hard to retain any realistic information, though it is possible with proper limits