A thread on webmaster world poses a question I had several months ago but never found a clear answer for.
The question is simple, but the answer is more complicated.
What is 1 divided by 0?
According to Google’s calculator, it’s 0, but I think they’re right out. The two answers I had found were infinity and undefined (or error).
As an experiment, I decided to try it on all the calculators I could get my hands on:
The unix desk calculator (dc): divide by zero
Gnome’s calculator (gnome-calculator): inf
KDE’s calculator (kcalc): error
My HP 48G: Error: infinite result
My palm pilot: error
So that’s 3 votes for error and 2 for infinity.
Next, I tried various programming languages:
Perl: Illegal division by zero
PHP: Division by zero
Bash shell: division by zero
C/C++: division by zero
Java: / by zero
Python: ZeroDivisionError: integer division or modulo by zero
With all 6 being errors, it looks like programmers have decided you’re not allowed to do it.
That makes a total of 9 votes for undefined (or error) and 2 votes for infinity, so undefined is the big winner.
If you’re still not satisfied, you can find more on the subject by searching Google for divide by zero.
Undefined is definitely the way to go here, since defining a number for the result of division by zero pretty much destroys very important mathematical properties and makes possible proofs that all numbers are the same, and other nasty things.
The only context in which infinity is a useful answer is when you’re taking the limit of n/x where x approaches 0. In this case, x never actually IS 0, and the value goes up towards infinity as x get smaller and smaller. This still isn’t a fully general solution, though, since negative values of n will go to negative infinity and n = 0 is indeterminate, i.e. there’s not any answer that you can determine.
When dealing with computer hardware, IEEE 754 (the most common floating point spec for ALU implementations) defines n/0 in terms of limits, so you have the possibility of +inf, -inf, and NaN. Integer math (on x86 at least) triggers an interrupt on division by zero.
» Comment by Levi on April 21, 2005 @ 9:28 amPut that equation into a real world scenario: I have one orange I want to divide it into zero pieces.
Answer: You would never want to do that, so why do it?
Am I over simplifying it?
» Comment by jason on April 21, 2005 @ 3:16 pmWell, there is an alternate question which lends itself to the infinity answer, which is: How many times does 0 go into 1?
» Comment by dan on April 21, 2005 @ 3:44 pmthat’s recalculus!
» Comment by whaleman on April 21, 2005 @ 11:16 pmWell lets see… I think we shold have all learned this is Trig and Pre-cal… so the answer is undefined… b/c like Levi said… if you use infinity as the answer than you are dealing with screwin up the whole mathamatical platform… b/c you are giving reason to beleive that all numbers are one in the same… so I think the Smart thing to do is go with undifined as the answer…
» Comment by Sunshine Harrington on April 22, 2005 @ 8:28 amdan, I don’t think it’s actually an ‘alternate question’, it’s a question for which you might use the limit to find a reasonable answer that matches your intuition. It must be noted that you can’t actually treat infinity as a real number, or you end up with the same issues discussed earlier and a mathematical system that is nonsensical.
All this mess surrounding zero is part of why the Greeks and their intellectual followers fought against it for so long. Though it’s hard to believe now, for a long time there was no such thing as a number zero. Even when computations involving a number zero were introduced in the East, it was considered a heretical idea in the West due to philisophical implications. Eventually the utility of it won out, and now if you try to tell people that at one point no one knew about zero, you get a lot of funny looks. I’m probably getting a funny look from you now, in fact, but it’s true!
» Comment by Levi on April 22, 2005 @ 9:14 amWhen you divide by zero on a PowerPC chip (G4, G5, etc) you get zero. Since these chips are his holiness steve jobs’ true choice, we may have a divine answer here. (This is an important different from x86 to watch out for when writing portable code.)
As an aside, I find the types of ads google lists on your blog amusing:
» Comment by ammon on April 22, 2005 @ 10:14 amHomocon - Gay Republican
Not all Gay Men are Liberal Check out this new Blog
» Comment by dan on April 22, 2005 @ 1:21 pmWoahWhoa. What are those doing there? (Not that there’s anything wrong with that).I get the Seinfeld reference, Dan, but am surprised to see you use it here. And woah/whoa — per m-w.com, at least. (I was thinking whoah, but defer to the dictionary.)
I love the philosophical 1/0 debate going on here. Good stuff.
» Comment by DavidH on April 22, 2005 @ 2:19 pmIt’s undefined and it specifically addresses the “persistent but misguided reader who insists on asking “What happens if I do divide by zero?”:
http://mathworld.wolfram.com/DivisionbyZero.html
» Comment by Justin on April 23, 2005 @ 4:29 pmthink of deviding by zero like this take (one)devided by(nothing)
» Comment by helper on May 20, 2005 @ 10:32 am(two)devided by (1) equals 2 beacause your seperating 2 objects into groups of 1 each and the answer is the amount of groups you end up with which is 2 but if you devide by zero your seperating 2 objects into groups containing no objects thus you end up with infinity its not alreals its the largest # ever which is unreasonable so thats why it seams its undefined its both really just like a quadratic function there are 2 answers its undefined and infinity
um, it’s quite obvious.
take a look at this:
1 divided by 0.1= 10
1 divided by 0.01=100
1 divided by 0.001=1000
Therefore as the denominator becomes smaller, the result of the equation becomes greater. Hence, by dividing a number by 0, the result becomes infinite.
» Comment by Anonymous coward on November 12, 2005 @ 4:15 amthis is ridiculas it is obveosly infinity ask any math proffessor
» Comment by zafar on February 23, 2006 @ 12:01 pmI find it quite humorous when people continue to claim it’s quite obvious when there is a great deal of disagreement among the comments. It’s not obvious at all, otherwise there wouldn’t be so much of a debate.
Another data point is my TI-89 calculator which actually handles infinity and uses infinity as the answer in several cases. It says 1/0 is undefined.
» Comment by dan on February 23, 2006 @ 2:48 pmUm yeah, undefined and infinity are the same thing, especially in calculus. Usually limits that involve infinity are called undefined. And it is due to the limiting pocesss stated above about decreasing the denominator, hence the limit as the denominator approacjes zero is indeed an exponentially increasing number. Undefined just means it has NO numerical value or definition since infinity is not an attainable umber. But have fun with this physics equation: V=IR is the voltage due to a current and a resistance. Say yourn given a voltage of 120 volts and a superconducting wire (absolutely no resistance so its 0) and you want to find the current, is the current undefined due to V/R=I written as 120/0= infinity, nope its 120 amperes. There are equations in physics where division by zero is allowed. But then again usually things in physics are messed up.
I know its an old topic but I couldnt let it just hang as the answer had to be undefined, 0 or infinity but as all of them at once.
» Comment by Dan on June 13, 2006 @ 12:30 pmThanks for your input Dan. Although I disagree with the blanket statement that infinity and undefined are the same thing, you make an interesting point.
» Comment by dan on June 13, 2006 @ 12:47 pmBut that’s just it isn’t it? All numbers ARE one and the same. I know many of you don’t agree with this statement but I’ll say it anyway b/c its the most logical response:
» Comment by Anon on August 23, 2006 @ 12:03 pmAnything divided by 0, does prove all numbers ARE the same, because God invented the language of numbers, it is the language of God.
God is to divide by 0, which is why science is constantly re-writing and re-proving itself by trying harder and harder to precisely define something. All it does is repeat… for infinity or forever.
Anon: No, that’s not just it. All numbers are not the same. I don’t know you, but I can tell you’re one strange turkey.
» Comment by dan on August 23, 2006 @ 1:49 pmMy question is give justification why 0 divided by 0 does not exists i want something that i can be delivered in front of a lay men means some sort of a real problem, which easily understandable i know that anything divided by zero is infinity as it is possible to give a real sort of answer but why 0 divided by 0 does not exists
» Comment by asfar nisar on November 8, 2006 @ 12:04 amDivision by Zero is possible………..0/0=0……………..use simple multiplicative and additive identies/inverses with this eqn…e.tc and it may be proven for any intiger.
» Comment by Arcturus on December 8, 2006 @ 8:45 pm(k.ramdass@gmail.com)
JavaScript returns infinity as well.
» Comment by Gene on January 17, 2007 @ 7:49 amhttp://geneburnham.5u.com/JScalc.htm
Gene: Thanks for sharing. The infinity voters get another one to back them up.
» Comment by dan on January 17, 2007 @ 10:10 amSorry, I was just giving an example of a language that had not yet been used.
» Comment by Gene on January 17, 2007 @ 6:01 pmNo need to apologize - I was thanking you for providing another example.
» Comment by dan on January 17, 2007 @ 7:19 pmOh, you’re quite welcome.
» Comment by Gene on January 18, 2007 @ 5:50 amP.S. I’m sorry about all the ads on that page, it’s just how free web hosting stays free…
1 Divided by 0 is infinity. Think about it like this example:
» Comment by Anon on January 25, 2007 @ 7:42 amHow many twos you need to get a twelve?- the answer is 6 (2+2+2+2+2+2)
And how many zeros you need to get a 1 - its infinity because 0 can never reach 1
(0+0+0+0 ….. can never add up to 1)
1/0=infinity, Why? Because group theory proves it, graphing proves it, logic proves it, and algebra proves it.
~~~~~Group Theory and Algebra
They say that multiplication for the REALS is a group.
In order to be a group 4 things must be true
1) closure
2) associativity
3) Identity
4) Inverse
The multiplicative identity is 1 because x*1=x
This means that x*y=1, y is the inverse of x. Every possible x needs a y… However
what if x is 0?
0*?=1
We say nothing right? Not the case, otherwise the real numbers wouldn’t be a group. 0*infinity=1
Thus also 1/0=infinity
~~~Graphing
Anyone ever seen a parabola? (y=1/x) As x get’s closer and closer to 0, y get’s closer and closer to…what? Oh yes Infinity.
~~~~~Logic
I have 5 apples, I’m making groups of 0 apples. How many groups can I make? Here’s you group of 0 apples, and here’s your group of 0 apples, and yours…..forever! Infinity.
~~~~~Bonus Logic
Our system is poor, imagine a system where not only the numerical value of the number was important, but also the history of the numeric value. Every number has a history, it’s just we don’t often understand it. For example, 10 kids are in a class. This number 10 has a history, in fact a history and creation on more than one way. One history may be that 3 kids came in first, then later 2 kids, then 5 kids. Even though 10 is 10, the origin of that 10 can vary. In the real world sense there’s infinite history’s for every number but in the math world we can limit this. So here’s our new system, one where 3*2=6, and that 6 is not identical 3+3’s 6. It’s origin must be carried with it. Just because our system doesn’t carry the history doesn’t mean this factor isn’t there, and can come into play when working with things like infinity. Now let’s apply this to infinity. We know that there are different types of infinity, for example the sum of all terms of 2x from (1,2,3…inf) is infinity but it is not as great as an infinity as one that’s from the sum of all terms 5x from (1,2,3…inf). And thus we see that the origin of the infinity is greatly important.
Thus infinity+1 is not = to infinity; they both are forms of infinity yes, but their history must be kept with them. so (infinity+1)-infinity=1 and not 0; Only by keeping the history of the infinity can we solve things back to our system with it. This is a concept we are not use to in math.
One final concept of importance in the “infinity, infinity+1, infinity*2, infinity^2″ stuff. Think as infinity as an arbitrary point, one that we use merely for reference. And the number’s actually instead of looking like this (…-2…0…1/8…sqrt2…5…infinity) the infinity end should look a little more like this …infinity-1….infinity….infinity+1…) where even as you keep adding to 0 or minus-ing from infinity you’ll never reach the same value unless you minus infinity from infinity or add infinity to 0.
And when you keep the history for infinity, all the laws of modern math still work actually.
» Comment by neonash7777 on February 3, 2007 @ 9:40 pmWolfram MathWorld states, “Zero does not have a multiplicative inverse under any circumstances.”
The debate continues…
» Comment by dan on February 4, 2007 @ 1:17 pmThere have been some god awful statements made here. I’m of the opinion that some people need to stick to b1tching about computer games on tech forums and leave the right people to discuss mathematics
» Comment by Tom on February 22, 2007 @ 6:59 pmthink of it like this 1/0 is infinte because 0 goes into 1 as much times as you want it too so it goes infinite times.
» Comment by alle on August 14, 2007 @ 6:04 amha i think thats funny because according to what is the standard answer to this problem, undefined and infinity are the same.
1 divided by 0 would be both infinity and undefined.
it means you are dividing or separating or cutting 1 into 0 pieces. if i had 1 apple and i wanted to cut it into 0 pieces, how long would i be slicing that thing? an undefined (”not limited” according to the dictionary) amount of times, or an infinite amount of times. same thing.
however error is my fav.
» Comment by kc on October 3, 2007 @ 11:06 amdivide by zero and then check your answer if you want to see what i mean. =D
Google no longer even /tries/ to search for numbers / 0. Try it.
» Comment by thejapanesegeek on February 8, 2008 @ 8:54 amInteresting - I guess they gave up on it.
» Comment by dan on February 8, 2008 @ 9:11 am1 divided by zero is universally impossible and forbidden.
» Comment by Wes C on March 19, 2008 @ 7:54 amThere is an incredible (maybe true but not released in public)book called Deep Storm by Child that includes impossibe equations like a^3+b^3=c^3.
How many of you have taken a Calculus course? Limits, L’Hopital’s rule, etc..
Particularly L’Hopital’s rule
» Comment by Steven on September 25, 2008 @ 7:15 amthere is an answer to this 0/0 is 0 where as 1/0 or 2/0,etc is infinity let us assume that the number line is not straight but curved nto a circle this circle has extensible radius 0 is at e part of the circle and +nos to the right -nos to the left a point on the other end of the circumference be infinity(remember defn) so if u say 78907648998754379 is the point of infinity the circle will adjust size and fit a bigger no.idea is to say +finity and-infinity is almost the same no.tending to 0 geometrically infinity will lie betwen 1 and 0 diameterically opposite.getting ideas tell me your response and i will tell u the fill amazing solution recently developed at the iapt which changes the entire no system!!!!!!!
» Comment by debo on September 30, 2008 @ 8:33 amyes i know about this what a incredible theory quantumised disburgities in number. uses laws of physics to prove mathematical modules what an explicit solution
» Comment by drona on September 30, 2008 @ 8:39 amIf we all listen to what the “experts” say about what we are suppose to think in life…how boring life would be. Get back to the basics/think outside of the box and be open minded. 1/0 is obviously 1. If you take 1 “apple” and / it by 0…you’re still left with 1 apple. It didn’t disappear into thin air!!! People should start using their own common sense and not let others dictate to them on how to think. Who are they to make the rules???
» Comment by maxie on October 23, 2008 @ 2:09 am@maxie I’m all for being open minded, but by your logic, 1 divided by anything would equal one. If you take 1 apple and divide it by anything, you’re still left with 1 apple and it won’t disappear into thin air. You’re saying 1 divided by anything is still one?
» Comment by Dan on October 23, 2008 @ 10:21 am