It's undefined. Remember that division is reverse multiplication, so is asking "what number times 2 equals 8?".
is asking "what number times 0 equals 8?". However, every number times 0 is 0, so there is no number that when multiplied by 0 equals 8 (or any other nonzero number). Therefore, any nonzero number divided by 0 is undefined.
is indeterminate since it is asking "what number times 0 is 0?". Since every number times 0 is 0, we cannot "determine" a correct value.
Like 10/2- imagine a 10 square foot box, saying 10 divided by 2 is like saying “how many 2 square foot boxes fit in this 10 square foot box?” So the answer is 5.
But if you take the same box and ask “how many boxes that are infinitely small, or zero feet squared, can fit in the same box the answer would be infinity not “undefined”. So 10/0=infinity.
I understand why 2/0 can’t be 0 not only because that doesn’t make and since but also because it could cause terrible contradictions like 1=2 and such.
Ah math is so cool. I love infinity so if anyone wants to talk about it drop a comment.
Edit: thanks everyone so much for the answers. Keep leaving comments though because I’m really enjoying seeing it explained in different ways. Also it doesn’t seem like anyone else has ever been confused by this judging by the comment but if anyone is I really liked this video https://www.khanacademy.org/math/algebra/x2f8bb11595b61c86:foundation-algebra/x2f8bb11595b61c86:division-zero/v/why-dividing-by-zero-is-undefined
It's undefined. Remember that division is reverse multiplication, so is asking "what number times 2 equals 8?".
is asking "what number times 0 equals 8?". However, every number times 0 is 0, so there is no number that when multiplied by 0 equals 8 (or any other nonzero number). Therefore, any nonzero number divided by 0 is undefined.
is indeterminate since it is asking "what number times 0 is 0?". Since every number times 0 is 0, we cannot "determine" a correct value.
It's undefined. In fact, I have two ways to show this.
- Asking "What is
" is basically asking "What number does multiplying 0 get 1", which has no answer.
- Alternatively, we could use limits (in calculus).
but
and
, therefore
is undefined.
Videos
?: is a ternary operator. (num & mask) ? 1 : 0;
Think of it like this:
Copyif( (num & mask) ) {
bInt[pos] = 1
} else {
bInt[pos] = 0
}
It is ternary operator and also used in some other language like - java, c++. It is a replacement of short form if-then-else. It works like below -
Copyexpression ? if_true_then_process_it : or_process_it
I’ve been in the industry for 5+ years and seen this used a few times. Does it just mean a product I built was shipped/launched?
The other comments are correct: $\frac{1}{0}$ is undefined. Similarly, the limit of $\frac{1}{x}$ as $x$ approaches $0$ is also undefined. However, if you take the limit of $\frac{1}{x}$ as $x$ approaches zero from the left or from the right, you get negative and positive infinity respectively.
$1/x$ does tend to $-\infty$ as you approach zero from the left, and $\infty$ as you approach from the right:

That these limits are not equal is why $1/0$ is undefined.