Is Division by Zero Infinity!
We all know when any number should be divided by zero is infinity. But when it comes to the machine level computer won’t take it as an infinity.
Why? What was the reason? let’s take and examples and logic to explain it.
For example,
You have 40 pencils and you need to share these pencils among 10 friends equally. So let’s consider 40 is divided by 10 (40/10) is 4. So each friend gets 4 pencils.
Here the same as a computer doing. It will divide by 10. The concept is that the computer subtracts 10 from 40 until it goes to zero. So 4 times it gets subtracts from 40. Then the computer will give the output as 4.
Ex: 40/10 = 4
Let’s imagine, there are 40 pencils are shared among “0” friends (40/0). is it possible? No, because there are no “0” friends. There is no solution is arrived for this problem that’s why it’s called “Undefined”. This is what the computer does.
In computer:-
(40/10) =4
(28/7) =4
another way of logic as it as ( multiply):-
4*10 =40
4* 7= 28
These ways to view the (1/0) and (2/0) in the Mathematical field
1/0 = ∞
2/0 =∞
In both equations, division numbers and results are the same.
1/0 = ∞ = 2/0 , So 1=2 is the outcome from that equation.
This derivation is wrong always because 1 is not equal to 2. That's why the computer doesn’t give the result as infinite.
So, In computers that can divide any number by zero it’s “undefined”.