I love how android's calculator just simply gives up and says ∞ Edit: Tysm for all the likes but my notifications are getting spammed with this one comment
For anyone who thinks that 1/0 is 0 or 1, let's do some real-world examples. Let's start with a normal division, so you can see what I mean. Let's do 10/2=5. Let's say something travels 10 meters in 2 seconds, that means that it is travailing at 5 m/s because 10/2=5. Another way to look at this is; how far does it travel in 1 second? Well the answer is 5 meters. So now let's take the same example, but with 1/0. Let's say something travels 1 meter in 0 seconds. How fast is it travailing? Well there isn't really a proper answer to this apart from infinity, if something has traveled 1 meter in 0 seconds, then it has effectively teleported, so it's speed is infinite (which isn't possible in the real universe, since the speed limit is ~300 Mm/s). So if you look at it another way; how far does it travel in 1 second, if it travels 1 meter in 0 seconds? Well it will travel an infinite distance in any non-zero amount of time. To see how 0/0 differs from 1/0, let's take another real-world example. Let's say something travels 0 meters in 0 seconds. Well anything traveling at any finite speed will travel 0 meters in 0 seconds. So the speed could be 0 m/s, but it could also be 1 m/s, or 500 m/s, or any speed. So how far does it travel in 1 second? Well we don't know because the fact that it has traveled 0 meters in 0 seconds doesn't tell us how fast it is traveling, so any answer could be correct (apart from infinity). So 0/0 is undefined. I did another video similar to this one where I divided 0 by 0 on different calculators, and many of them displayed different results to 1/0: czcams.com/video/waDfe1-ZvDY/video.html
Isn't 1/0 undefined? 1/x If x is approaching zero, then the answer is approaching infinity. 1/-x If x is approaching zero, then the answer is approaching negative infinity.
Actually in many programming languages (ie Java) it makes a big difference whether you divide integers or floating point numbers by zero. Integers will cause an exception, while floats will produce positive/ negative infinity. This is defined by a norm of the IEEE, and can cause a lot of confusion
@@cylemons8099 floats too. The thing with signed integers are that no software displays "-0" when it's integer, but you still have 1 bit for sign so technically it still can be negative.
Im a little scared cause we are in the exaxcly same situation apparently. I was born on 03/02/2003, unemployed, no college, afraid of the future, calculators dividing by 0 is really awesome. good luck with your future, my distant twin 🤝
@@World_of_OSes yea yea, i mean, in my country we use DD/MM/YYYY date format. I just forgot that ppl can misinterpret a date without context depending on the country it is in.
Ah yes gotta love when ypur school forces you to buy a texas intstrument ti-83/84 for 120$ when literally every machine has a calculator provided for free that you're not allowed to use
Time to explain some misconceptions in the comment sections: First off, showing infinity as an answer is just another simpler way of saying Error. In the scenarios where it somehow isn’t a error, it means every single answer would be correct. Secondly, the problem with square root of -1 = X (called problem A) 1/0 = X (called problem B) have different issues regarding them. Problem A has no Real number capable of solving it, but there’s no fundamental issues with the equation Problem B suffers from 2 contradictory statements being 0X = 1 which is the equation we’re dealing with and 0X = 0 which is the basic definition of 0. This is why 1/0 is a error, because 0 is the only number that will find the same answer regardless of what you multiply it with.
but if ur dividing by zero it means that ur dividing by nothing so ur straight up not dividing so the result should be the you kbow ok im drunnk im gonna dmint
@@blvehxrizon-kg6qw Let say 1/0 = X, meaning 0X = 1. However, we know 0X = 0 because anything multiplied by nothing would be equal to 0. See the issue now?
siri has a good way of explaining 0 divided by 0 "say you had 0 cookies and you shred them between 0 friends, see it doesnt work and cookie monster is sad bc there are no cookies and you are sad bc you have no friends" Me: why is it so true
To check whether the division is performed correctly, you need to multiply the quotient by the divisor. With 1/0, any number multiplied by 0 will be 0, so such an expression has no solution
Если посмотреть на это с точки зрения мат.анализа, то чем меньше делитель, тем дальше частное. Бесконечное уменьшение делителя приводит к бесконечному росту частного. В итоге при делении на ноль мы получаем число, стремящееся к бесконечности. Именно поэтому многие калькуляторы при делении на ноль показывают бесконечность. Однако в том же математическом анализе есть такие вещи, как "неопределенности", которые не будут иметь смысла ни при каких условиях. Например, 0/0 - это выражение никак не может быть определено. При обычном делении на ноль мы получаем гипотетически бесконечное число, здесь же мы не можем получить ничего, потому что с одной стороны там должно быть 1, ведь делим одинаковые числа, с другой стороны ноль, потому что мы делим ноль на число, а с третьей - бесконечность, так как делим число на ноль. Именно поэтому это выражение никак не определено.
I know that in Scratch 2 and 3 (which are programming languages), It says 'NaN' if you divide 0 by 0. Also, on all versions of Scratch, it displays 'Infinity' if you divide a number that isn't 0 by 0. By the way, Scratch is pretty much the same as BYOB (now known as 'Snap!').
Arithmetically speaking, 0/0 and any other number/0 give in fact different results: the first one is undefined (because every number if multiplied by zero gives zero as result), whereas the other one is literally impossible (even infinite that may seem the right answer, actually is also wrong, you can search why on the internet).
@@ThomasPianta that is how floats work, if you divide a positive number by 0 you get +Inf, if you divide a negative number by 0 you get -Inf, if you divide 0 by 0 you get NaN
n/0 is an interesting concept because its actually a valid operation in some cases and has 3 answers. problem is that its all 3 at the same time, thus its unable to be defined which one is "correct" in the context of your use case. its 0, infinity and NaN(undefined) all at once, depending on context and implementation. the reason computers dont like it is because its logical answer is always infinity and computers dont handle unbounded values well, only approximations. the fact that some of them actually give "correct" responses is interesting to me too. its clear that in the case of javascript its actually doing a fractional multiplication rather than a pure division. depending on how you intend to use it and what you are doing having a programming language take such a dismissive approach of numeric expressions could be a good thing. say for example some sort of progress counter. if you have 100 things to count and are counting them at a rate of 0 then the equation for the number of steps it will take to to count to 100 is, by definition, 100/0. in that case, infinity is a perfectly valid answer as it the context. being able to just say "oh, yeh, thats never getting to 100" without crashing your program is good in that case.
yeah but letting something divide without making sure there is no division by zero is bad programming style (at least our prof told us so). if there is a non-0 chance of the divisor being 0, irrelevant how small it may be, you defenitely should check it the divisor is 0 and if it is do what needs to be done in the context. In you example of how long something will take to complete I'd make a special case where it doesn't say "NaN seconds remaining" (or whatever) but rather something like "No progress".
Windows 98 Calculator can display either positive, or negative infinity error if you happen to divide any positive, or negative number by 0 respectively. Trying to divide 0 by 0 gives different message.
The result is positive and negative infinity at the same time. Because of : The multiplication by 0 always equals 0 and the division is the opposite of the multiplication. Which concludes that division by 0 equals the opposite of the smallest number possible (0) and it is infinity.
I believe the reason javascript produces infinity, is because in javascript, numbers are stored as floats, and in floating point, uh, well, did you know that for floating point numbers there is a “negative zero”? I think if you divide 1 by “negative zero” (in the like, IEEE standard or whatever for how floating points work) you get negative infinity.
Bc to show what catluater answer was (of course it’s 0 bc can’t divide by 0)like some will says 0 some says “can not divide by 0” and some says “infinity” etc.
What's interesting is that some C compilers will actually allow you to divide by zero and it won't return any errors, NaN (except for floating point values which are defined by the IEEE standard to return a NaN in such an instance), nor will it try anything close to "infinity". GNU's C Compiler (GCC) for instance will simply force the output to be "0" which is technically correct since 0 * 0 is 0, but the infinity answers are more correct since anything multiplied by 0 will return 0. Clang for some odd reason decides to take a pointer to 12 bits prior to the current base pointer address (rbp - 12) Intel's C Compiler (ICC) does a similar thing to Clang but instead takes a pointer to 16 bits prior to the current base pointer address instead (rbp - 16) Microsoft's Visual C/C++ Compiler (MSVC) does a similar thing to GCC and throws a "0" into the mix Tiny C Compiler (TCC) does the interesting thing and actually attempts a division by zero which yields a crash when executing the compiled output The C language is really a mixed bag when it comes to these sorts of experimentations, sometimes it just defaults to a nil value, sometimes it just mucks about with the process memory, and perhaps an archaic or simple enough C compiler will actually attempt to do the unthinkable resulting in it flipping out and either crashing or spazzing out. Too bad I don't have access to Borland C compiler or the Plan9 C Compiler from AT&T, the latter one is more-or-less due to incompatibilities with modern systems (although virtualization is still an option) and I could find "questionably legal" sources for the last version of the Borland C compiler but I won't be bothered with hunting it down just to see how it handles divisions by zero.
@@fbiagentmiyakohoshino8223 Yes, and according to IEEE 754 specification NaN should never be equivocal to NaN. Even with JavaScript's type-safe comparator system NaN can never be equivocated to NaN.
The reason why mostly it gaves an error and not a straight up symbol, it's because due to the fact that 0 is a neutral number (neither positive nor negative) the answer can't be neither +infinite nor -infinite. You'll notice that some calculators use the infinite symbol or they just write infinity. But that's not a definite answer. I hope I helped some of you to know why you can't divide by 0
Yeah, to get infinity you should divide 1 by a number infinitely close to zero, but not zero. So these calculators saying "1/0 = infinity" are not perfectly correct.
Except in limits 0 can gain a sign, and infinity's sign can also be determined by the constant's sign. For example, 1/0 gives infinity, but -1/0 gives minus infinity. Then 0 gains a sign based on where you approach zero from (cause in the context of limits it would be 1/x where x tends towards 0). If it tends to 0 from minus infinity, then it's 1/-0, if from plus, it's 1/+0. Then there's 0/0 who is undefined even in limits.
Is there a way to remove the error function? If so, what would happen if you divided 0 by 0 on a caucular without an error function? (Including the other results for 0/0, like Nan & ∞.)
@@hexyellow9873 you use a try catch and get the error where you can't divide by 0 and then you print some like "infinity" For example in C# try { i = i / 0; } catch(DivideByZeroException) { Console.Write("Infinity"); }
The left-hand limit of 1/x as x approaches 0 is negative infinity, but the right-hand limit of the same equation is positive infinity. This means that 1/x does not exist at 0 because the left and right limits are not equal.
in python you have to use the command : "int" to convert a variable to a number. without this command you will get the error shown in the video. upvote so the author can see
With many programs x / 0 is intercepted and leads to a defined error message. Some are not sure and claim infinity. In the case of a few, this leads to the failure of the code. In another video I saw an electromechanical calculating machine that began to calculate forever. Exit only by switching off.
Tbh adding a single if statement that will check if second number is not equal 0 is not that hard. But if someone forget about that program would just get runtime error and crash, thats all
The possible answer of Infinity makes some sense when you think of division the following ways: "How many times can [denominator] fit into [numerator]?" 0 fits into any number above it an infinite amount of times. Therefore, going off this logic alone, diving by zero results in Infinity.
I already mentioned once that a non-zero value divided by zero equals infinity. People laughed at me, it's good to know that many compilers, linkers and calculators say the same :)
In some contexts it can be useful to work with values on the Riemann sphere, and get the result of “the point at infinity”. Depends what you exactly you are doing / what you mean by the division, sorta .
@@drdca8263 Maths has concrete answer it doesn't work like "it depends". If denominator is 0 (not approaching 0) then the expression becomes undefined.
@@gigachad6844 effectively what I’m saying is that there are other operations one can define which have basically identical notations, and what operation one is using is understood based on the context, Such that something which everywhere else looks like you are doing ordinary division on complex numbers, at the point where you would “divide” by “zero”, you get another point on the Riemann sphere, just like you would at any of the other points. Obviously there is no element of any field such that multiplying it by the zero of that field, with the multiplication of that field, gives you a non-zero value. But as long as everyone knows what everyone means, and nothing is unclear, we can use e.g. the symbol “/“ to mean what is convenient for it to mean, as an analogy to other things which are called “division” or “a quotient”. For example, “ \bz/(0) is isomorphic as a group to \bz” is an ordinary thing to say, even though I am taking the “quotient” with respect to the “zero object” of the category of groups. So, as you say, the answer to a question isn’t “it depends”, *unless the question isn’t sufficiently specific* . If you ask “what is the result of applying an operation to two numbers?” this of course invites the question of “what operation and what two numbers?”. Another more clear cut example of this is in exponentiation. Namely, “What is 0^0 ?” . If both the 0s here are from a continuous variable, then the natural way to define it is that it is undefined. But if you are talking about exponentiation as an operation between integers (or cardinals), it is natural to define it to be 1.
That does not matter, because pressing + will also calculate the result of 1 / 0. The difference between = and + is that + lets you add a number to the existing result. I think he pressed + because of muscle memory.
1:01 Why the hell is this positive infinity? Why not negative infinity? Why not "Cannot divide by zero."? If you make a linear graph of dividing: "1/x" then you'll see that it's something like positive infinity and negative infinity at the same time. Why the hell, Microsoft...
Android 86 calculator, OLD LG Android phone calculator and Google calculator : it's infinity Other calculators : wait what ALCATEL button phone calculator : *E* Programming Languages: *-intense glitching-*
Linux users
👇
why is it pinned
@@linorder22 true
Hi
IUABTW
I was surprised that there is no 0
me yesterday: Imma go to sleep at 10pm
me at 3 am:
so relatable
Lol
how did you get pinned this vid is 1 years ago
1/0=infinity
me at 5 am reading your comment
I remember a MC Alpha Redstone creation, the calculator there, if you'd do 0/0 the whole thing would explode! :P
True
4/0 was enough to make it explode
@NOTHING who "we"? It is only you
@@soup8237 зелёный слоник под анг видосом.
@@satgurs hahaha
0/0 irl : nothing happens and just says "Error"
0/0 in cartoons : *NUCLEAR EXPLOSION*
Windows: cannot divide by zero 🥺
Ubuntu: Division by zero is undefined 🧐🍷
I was about to make the exact same comment. Lol.
I love that, the person who wrote it clearly had some background in maths.
BYOB: (red outline round code blocks) 🍷🧐🍷
KCalc: NAN.
Any other calculator: 0, infinity, cannot divide by zero, error)
ALCATEL: *_E_*
E is short for Error
E MEME guy
@@World_of_OSesi know. honestly i just want all calculators from now on to say E
@@starekmichal416 mosg handheld calculators do
E chain below!
*E*
I love how android's calculator just simply gives up and says ∞
Edit: Tysm for all the likes but my notifications are getting spammed with this one comment
My Android says "Cannot divide by zero"
Probably because my phone has Android 11 and the version in the video is outdated.
Even scratch too
@@veto_real The Scratch is outdated.
It’s true that the answer could be “infinity” (I can’t find the symbol for it)
∞
For anyone who thinks that 1/0 is 0 or 1, let's do some real-world examples.
Let's start with a normal division, so you can see what I mean. Let's do 10/2=5. Let's say something travels 10 meters in 2 seconds, that means that it is travailing at 5 m/s because 10/2=5. Another way to look at this is; how far does it travel in 1 second? Well the answer is 5 meters.
So now let's take the same example, but with 1/0. Let's say something travels 1 meter in 0 seconds. How fast is it travailing? Well there isn't really a proper answer to this apart from infinity, if something has traveled 1 meter in 0 seconds, then it has effectively teleported, so it's speed is infinite (which isn't possible in the real universe, since the speed limit is ~300 Mm/s). So if you look at it another way; how far does it travel in 1 second, if it travels 1 meter in 0 seconds? Well it will travel an infinite distance in any non-zero amount of time.
To see how 0/0 differs from 1/0, let's take another real-world example. Let's say something travels 0 meters in 0 seconds. Well anything traveling at any finite speed will travel 0 meters in 0 seconds. So the speed could be 0 m/s, but it could also be 1 m/s, or 500 m/s, or any speed. So how far does it travel in 1 second? Well we don't know because the fact that it has traveled 0 meters in 0 seconds doesn't tell us how fast it is traveling, so any answer could be correct (apart from infinity). So 0/0 is undefined.
I did another video similar to this one where I divided 0 by 0 on different calculators, and many of them displayed different results to 1/0:
czcams.com/video/waDfe1-ZvDY/video.html
Copy and paste from google?
@@NerDFace-ux5sl says the nerd
@@NerDFace-ux5sl No
@@Hexagon5791 I actually did write that myself.
Isn't 1/0 undefined?
1/x
If x is approaching zero, then the answer is approaching infinity.
1/-x
If x is approaching zero, then the answer is approaching negative infinity.
imagine installing a lot of operating systems just for divide a number by zero
I just watched 8 minutes of this guy typing 1 ÷ 0 into almost every calculator.
And I loved it.
Too 🤣
much 🤣
@@Uerasaleus Three🤣
@@bombie four 😮😪😰😰🤭🤭🤫🙄🥱😶😴🤧🤠😪🥸🤪🤨🧐🤣🤣🤣🤣😛🤨🥸🥸🤩🤩😗😘😗🤓😕😕😤😤😳😳
@@akirimew five
Actually in many programming languages (ie Java) it makes a big difference whether you divide integers or floating point numbers by zero. Integers will cause an exception, while floats will produce positive/ negative infinity. This is defined by a norm of the IEEE, and can cause a lot of confusion
ok lol
1÷0???? AAAAAAA
Not to mention, that 0 can be positive or negative if using signed integer ;)
@@morsikpl you mean float?
@@cylemons8099 floats too. The thing with signed integers are that no software displays "-0" when it's integer, but you still have 1 bit for sign so technically it still can be negative.
I'll turn 20 in 1 week, I have no idea for future and I'm watching what happens if you divide by zero on different calculators.
Im a little scared cause we are in the exaxcly same situation apparently.
I was born on 03/02/2003, unemployed, no college, afraid of the future, calculators dividing by 0 is really awesome.
good luck with your future, my distant twin 🤝
@@coda31313 Thanks! Everything best to you bro. Hope everything will go allright :)
@@coda31313 By 03/02/2003, do you mean 3rd February 2003, or March 2nd 2003?
@@World_of_OSes yea yea, i mean, in my country we use DD/MM/YYYY date format. I just forgot that ppl can misinterpret a date without context depending on the country it is in.
me2 but tomorrow I'm 20 , and i have no idea and hope abt my future XD
Ah yes gotta love when ypur school forces you to buy a texas intstrument ti-83/84 for 120$ when literally every machine has a calculator provided for free that you're not allowed to use
@USA country ball mhm it’s a brand
desmos
Time to explain some misconceptions in the comment sections:
First off, showing infinity as an answer is just another simpler way of saying Error. In the scenarios where it somehow isn’t a error, it means every single answer would be correct.
Secondly, the problem with square root of -1 = X (called problem A) 1/0 = X (called problem B) have different issues regarding them.
Problem A has no Real number capable of solving it, but there’s no fundamental issues with the equation
Problem B suffers from 2 contradictory statements being 0X = 1 which is the equation we’re dealing with and 0X = 0 which is the basic definition of 0. This is why 1/0 is a error, because 0 is the only number that will find the same answer regardless of what you multiply it with.
big brain
big brain boi
Thanks Proffesor
but if ur dividing by zero it means that ur dividing by nothing so ur straight up not dividing so the result should be the you kbow ok im drunnk im gonna dmint
@@blvehxrizon-kg6qw Let say 1/0 = X, meaning 0X = 1. However, we know 0X = 0 because anything multiplied by nothing would be equal to 0. See the issue now?
siri has a good way of explaining 0 divided by 0
"say you had 0 cookies and you shred them between 0 friends, see it doesnt work and cookie monster is sad bc there are no cookies and you are sad bc you have no friends"
Me:
why is it so true
"and you are sad bc you have no friends"
Ooooof THATS A LOT OF DAMAGE
_shred them_
anything times 0 will always be 0. You can do 0*0 which is 0, so that would mean 0 is the only thing you can divide by 0
@@Windows11Pro22 _s h r e d t h e m_
@@cycrothelargeplanet *_s h r e d t h e m_*
To check whether the division is performed correctly, you need to multiply the quotient by the divisor. With 1/0, any number multiplied by 0 will be 0, so such an expression has no solution
Division by zero would be left as undefined, and so a calculator would simply spit out error.
Well, it's trickier than that, because if you divide one by infinity, it will make 0
No, it is not true :-) anything * 0 0
Если посмотреть на это с точки зрения мат.анализа, то чем меньше делитель, тем дальше частное. Бесконечное уменьшение делителя приводит к бесконечному росту частного. В итоге при делении на ноль мы получаем число, стремящееся к бесконечности. Именно поэтому многие калькуляторы при делении на ноль показывают бесконечность. Однако в том же математическом анализе есть такие вещи, как "неопределенности", которые не будут иметь смысла ни при каких условиях. Например, 0/0 - это выражение никак не может быть определено. При обычном делении на ноль мы получаем гипотетически бесконечное число, здесь же мы не можем получить ничего, потому что с одной стороны там должно быть 1, ведь делим одинаковые числа, с другой стороны ноль, потому что мы делим ноль на число, а с третьей - бесконечность, так как делим число на ноль. Именно поэтому это выражение никак не определено.
The amount of computers he have just to have different oses must be 100³
But he can just use virual machine
How you write exponent?
@@CanadaandChinabloxfruitplayer ³
@@CanadaandChinabloxfruitplayer Character Map
@@CanadaandChinabloxfruitplayer¾
Calculator timestamps:
- Physical calculators
0:10 Standard calculator
0:17 Scientific calculator
- Windows calculators
0:27 Windows 1 & 2
0:36 Windows 3.1
0:45 Windows 95
0:54 Windows 98
1:03 Windows 2000, ME, XP & Vista
1:12 Windows 7 & 8.x (Desktop)
1:21 Windows 8.1 (Metro UI)
1:28 Windows 10
1:36 Windows 11
- Other OS calculators
1:44 MacOS
1:53 Ubuntu
2:04 KCalc
2:12 Hauku OS
2:20 Visopsys
2:28 MikeOS
2:43 Android (x86)
- Phone calculators
2:53 Alcatel
3:06 Android (Old LG)
3:15 Android (Samsung)
3:23 Android (Scientific Calculator app)
- Programming languages
3:32 Python
3:45 C#
4:29 Java
5:18 JavaScript
6:01 GameMaker
6:45 BYOB
7:03 QBasic
7:15 Bash
- Other calculators
7:30 Excel
7:41 Google Calculator
7:50 Table
Giga chad
When you feel useless then remember this
Wasted time
♾=1÷0
@@Cartoonhuggy1125 what abkut 2/0?? 400/0??? 5838388/0??
Music:
0:00 - Elektronomia - Energy [NCS Release]
3:18 - Tobu & Itro - Sunburst [NCS Release]
6:25 - Distrion & Alex Skrindo - Lighting [NCS Release]
You are a god thank you
Thanks you amazing human!
It's literally at the end🗿
Tysm
the first 2 r literally so nostalgic istg
actually, by the logic teachers teach us in 4th grade on how to divide,
the 1 doesn’t fit any time in the 0 so it just becomes 0
No, you've got that the wrong way around. It's how many times does 0 fit into 1?
@@World_of_OSes pretty much the same result
It is trying to be negative infinity, and positive infinity at the the same time, and infinity is undefined, and also it can’t be two numbers
@@PabTSM-OfficialChannel no
nah, that's if you divide 1 by 0
2:46 1:0=INFINITE WHAT IN THE WORLD
Ye I Know
Answer: 0
@@maximjachmar8629 true
@@DavidGreatModno? there are infinite amounts of 0s in 1. there is no doubt
@@papabasar ok
4:20 if you make zero an integer, the division will always be an integer for some stupid reason. If you make it a float, it returns infinity
Just tried it and it actually did! imgur.com/vIjUZrv
using System;
namespace FloatSpecialNumbers
{
class Program
{
static void Main(string[] args)
{
float one = 1;
float zero = 0;
float minusOne = -1;
float infinity = one / zero;
float minusInfinity = minusOne / zero;
Console.Write("1 / 0 = ");
Console.WriteLine(one / zero);
Console.Write("-1 / 0 = ");
Console.WriteLine(minusOne / zero);
Console.Write("0 / 0 = ");
Console.WriteLine(zero / zero);
Console.Write("sqrt(-1) = ");
Console.WriteLine(Math.Sqrt(minusOne));
Console.Write("infinity + 1 = ");
Console.WriteLine(infinity + one);
Console.Write("infinity - 1 = ");
Console.WriteLine(infinity - one);
Console.Write("-infinity + 1 = ");
Console.WriteLine(minusInfinity + one);
Console.Write("-infinity - 1 = ");
Console.WriteLine(minusInfinity - one);
Console.Write("1 - infinity = ");
Console.WriteLine(one - infinity);
Console.Write("1 / infinity = ");
Console.WriteLine(one / infinity);
Console.Write("1 / -infinity = ");
Console.WriteLine(one / minusInfinity);
Console.Write("infinity + -infinity = ");
Console.WriteLine(infinity + minusInfinity);
Console.Write("infinity / 0 = ");
Console.WriteLine(infinity / zero);
Console.Write("infinity * 0 = ");
Console.WriteLine(infinity * zero);
Console.Write("sqrt(infinity) = ");
Console.WriteLine(Math.Sqrt(infinity));
Console.Write("infinity / infinity = ");
Console.WriteLine(infinity / infinity);
Console.Write("infinity * infinity = ");
Console.WriteLine(infinity * infinity);
Console.Write("infinity + infinity = ");
Console.WriteLine(infinity + infinity);
Console.ReadLine();
}
}
}
1 / 0 = Infinity
-1 / 0 = -Infinity
0 / 0 = NaN
sqrt(-1) = NaN
infinity + 1 = Infinity
infinity - 1 = Infinity
-infinity + 1 = -Infinity
-infinity - 1 = -Infinity
1 - infinity = -Infinity
1 / infinity = 0
1 / -infinity = 0
infinity + -infinity = NaN
infinity / 0 = Infinity
infinity * 0 = NaN
sqrt(infinity) = Infinity
infinity / infinity = NaN
infinity * infinity = Infinity
infinity + infinity = Infinity
@@World_of_OSes no 1/0 = error
1/0f = infinity because 0f is a float and 0 is an int
@@World_of_OSes woha
All windows versions from 3.1 to 11: "WHY CAN'T YOU BE NORMAL?!"
Windows 98: *screams*
0:00 and 3:18 and 6:25
the whole video along with music feels like this was made in 2016 or something
I thought this video was 6 years ago
2021-11-11
wow
@@World_of_OSes u still active here💀
@@SussyPranav Yes
Now you should try dividing 0/0. It gives a different result (at least in Win10).
I know that in Scratch 2 and 3 (which are programming languages), It says 'NaN' if you divide 0 by 0. Also, on all versions of Scratch, it displays 'Infinity' if you divide a number that isn't 0 by 0.
By the way, Scratch is pretty much the same as BYOB (now known as 'Snap!').
Arithmetically speaking, 0/0 and any other number/0 give in fact different results: the first one is undefined (because every number if multiplied by zero gives zero as result), whereas the other one is literally impossible (even infinite that may seem the right answer, actually is also wrong, you can search why on the internet).
0 goes into 0 NaN times because 0 can go into zero infinitely
@@ThomasPianta that is how floats work, if you divide a positive number by 0 you get +Inf, if you divide a negative number by 0 you get -Inf, if you divide 0 by 0 you get NaN
oh that’s what it was
dude that sync in 3:16
n/0 is an interesting concept because its actually a valid operation in some cases and has 3 answers. problem is that its all 3 at the same time, thus its unable to be defined which one is "correct" in the context of your use case. its 0, infinity and NaN(undefined) all at once, depending on context and implementation. the reason computers dont like it is because its logical answer is always infinity and computers dont handle unbounded values well, only approximations. the fact that some of them actually give "correct" responses is interesting to me too. its clear that in the case of javascript its actually doing a fractional multiplication rather than a pure division. depending on how you intend to use it and what you are doing having a programming language take such a dismissive approach of numeric expressions could be a good thing. say for example some sort of progress counter. if you have 100 things to count and are counting them at a rate of 0 then the equation for the number of steps it will take to to count to 100 is, by definition, 100/0. in that case, infinity is a perfectly valid answer as it the context. being able to just say "oh, yeh, thats never getting to 100" without crashing your program is good in that case.
No it's not infinity! How about 1/-0.00...01? Is it positive or negative?
yeah but letting something divide without making sure there is no division by zero is bad programming style (at least our prof told us so). if there is a non-0 chance of the divisor being 0, irrelevant how small it may be, you defenitely should check it the divisor is 0 and if it is do what needs to be done in the context. In you example of how long something will take to complete I'd make a special case where it doesn't say "NaN seconds remaining" (or whatever) but rather something like "No progress".
Человек выучил все языки программирования и пытается разделить 1 на 0.
А вы что сделали?
Я включил ПК
Thanks to the author for posting the comment
я встал с кровати
Я купил новую колду
не все, есть lua и lua для роблокса
Windows 98 Calculator can display either positive, or negative infinity error if you happen to divide any positive, or negative number by 0 respectively. Trying to divide 0 by 0 gives different message.
what message does it give?
@@Perseagatuna a different message
@@claudetheclaudeqc6600 funny
@@Perseagatuna possibly "NaN" or "Indeterminate", dont know tho
@@claudetheclaudeqc6600 lmao
1:17 those clicks were on beat
3:18
@@World_of_OSes you’re right :o
@@yeeterteeter3939oh gosh, that keyboard needs to be enlarged…
With this new reverse shrink ray!
A person divinding one by zero in differents calculators
625 thousand other peoples: wow, this is very interesting
2:50 Ok, that ACTUALLY gave the answer! 👍
Everyone gangsta until the calculator create a blackhole
FAIL
Sorry, I was in the bathroom. What’d I mi- Where’d… Where is everyone?
2:17 Proof that divison by 1 and 0 is 2.
incorrect, it's plus/minus infinity and it's undefined
@@venetziagajardo7376 bro he's joking
I don't get the joke
You're really testing the universe here!
The result is positive and negative infinity at the same time.
Because of :
The multiplication by 0 always equals 0 and the division is the opposite of the multiplication. Which concludes that division by 0 equals the opposite of the smallest number possible (0) and it is infinity.
This is not a proof. n/0 is, in fact, a singularity.
what kind of pocket dimension was he in? doing this would have literally shattered the fabric of reality 90 times over.
every calculator: error, NaN, cannot divide by zero
android and javascript: **INFINITY**
Well, you can include Windows 98's calculator to the infinity club somewhat...
...and beyond
Isn't that the logical correct answer?
@@Cookie__XD it’s possible by only using limits, without it it’s undefined
I believe the reason javascript produces infinity, is because in javascript, numbers are stored as floats, and in floating point, uh,
well, did you know that for floating point numbers there is a “negative zero”?
I think if you divide 1 by “negative zero” (in the like, IEEE standard or whatever for how floating points work) you get negative infinity.
what's the point of this video? all same ... you can't divide any number by zero.
The video is 1 year old and this comment is 7 hours old, why is it pinned? lol
@@kala3607 to show he's still active idk
He's showing what message pops up
Bc to show what catluater answer was (of course it’s 0 bc can’t divide by 0)like some will says 0 some says “can not divide by 0” and some says “infinity” etc.
i mean all you do is play " Soccer Star Games " every video
Did he buy all of those? Me watching: RESPECT++
couldn’t even edge to this, I exploded immediately!!! Clean up on aisle MY PANTS 😂😂😂😂
@PrettyGoodPerson
1 day ago
couldn’t even edge to this, I exploded immediately!!! Clean up on aisle MY PANTS 😂😂😂😂
@@ZarkSM24 Real.
@@ZarkSM24its november bro..
@@ZarkSM24is that really a dc ref.
What's interesting is that some C compilers will actually allow you to divide by zero and it won't return any errors, NaN (except for floating point values which are defined by the IEEE standard to return a NaN in such an instance), nor will it try anything close to "infinity".
GNU's C Compiler (GCC) for instance will simply force the output to be "0" which is technically correct since 0 * 0 is 0, but the infinity answers are more correct since anything multiplied by 0 will return 0.
Clang for some odd reason decides to take a pointer to 12 bits prior to the current base pointer address (rbp - 12)
Intel's C Compiler (ICC) does a similar thing to Clang but instead takes a pointer to 16 bits prior to the current base pointer address instead (rbp - 16)
Microsoft's Visual C/C++ Compiler (MSVC) does a similar thing to GCC and throws a "0" into the mix
Tiny C Compiler (TCC) does the interesting thing and actually attempts a division by zero which yields a crash when executing the compiled output
The C language is really a mixed bag when it comes to these sorts of experimentations, sometimes it just defaults to a nil value, sometimes it just mucks about with the process memory, and perhaps an archaic or simple enough C compiler will actually attempt to do the unthinkable resulting in it flipping out and either crashing or spazzing out.
Too bad I don't have access to Borland C compiler or the Plan9 C Compiler from AT&T, the latter one is more-or-less due to incompatibilities with modern systems (although virtualization is still an option) and I could find "questionably legal" sources for the last version of the Borland C compiler but I won't be bothered with hunting it down just to see how it handles divisions by zero.
fyi, nan = not a number
@@fbiagentmiyakohoshino8223 Yes, and according to IEEE 754 specification NaN should never be equivocal to NaN.
Even with JavaScript's type-safe comparator system NaN can never be equivocated to NaN.
3:52 LIGHT THEME, MY EYES
?
@@LucasTheFootballGod dói
THINK FAST CHUCKLENUTS!
*throws flashbang*
@@LucasTheFootballGod dói
@@LucasTheFootballGoddói
The reason why mostly it gaves an error and not a straight up symbol, it's because due to the fact that 0 is a neutral number (neither positive nor negative) the answer can't be neither +infinite nor -infinite. You'll notice that some calculators use the infinite symbol or they just write infinity. But that's not a definite answer. I hope I helped some of you to know why you can't divide by 0
Yeah, to get infinity you should divide 1 by a number infinitely close to zero, but not zero. So these calculators saying "1/0 = infinity" are not perfectly correct.
Except in limits 0 can gain a sign, and infinity's sign can also be determined by the constant's sign.
For example, 1/0 gives infinity, but -1/0 gives minus infinity.
Then 0 gains a sign based on where you approach zero from (cause in the context of limits it would be 1/x where x tends towards 0). If it tends to 0 from minus infinity, then it's 1/-0, if from plus, it's 1/+0.
Then there's 0/0 who is undefined even in limits.
@@yakone1379 why didn't I think of this?
Is there a way to remove the error function? If so, what would happen if you divided 0 by 0 on a caucular without an error function? (Including the other results for 0/0, like Nan & ∞.)
@@hexyellow9873 you use a try catch and get the error where you can't divide by 0 and then you print some like "infinity"
For example in C#
try
{
i = i / 0;
}
catch(DivideByZeroException)
{
Console.Write("Infinity");
}
This guy knows every programming language 😂
The left-hand limit of 1/x as x approaches 0 is negative infinity, but the right-hand limit of the same equation is positive infinity. This means that 1/x does not exist at 0 because the left and right limits are not equal.
Me: what's 1÷0?
Teacher: N A N
Me: E R R O R: P O S I T I V E I N F I N I T Y
Me: undefined because positive infinity in positive direction and negative infinity in negative direction
Bruh i laughed when mac os said "not a number" idk it looked funny to me😂
🤣
Yeah same 😂
Kde just: nan
"how many programming languages do you know?"
_this guy:_ *yes*
in python you have to use the command : "int" to convert a variable to a number. without this command you will get the error shown in the video. upvote so the author can see
Which variable?
@@mariosplenchidis6473 oh, more precisely, not a variable, but a string print
I like how C# has a exception specifically for Dividing by Zero
same with python my guy
@@martysh1226 yeah
A classic of C...
I like the way Ubuntu says it as it feels the most "correct"
does this work for every number and also with 0/0
0/0 is different. Any other number divided by 0 is the same as 1/0.
I did 0/0 in a different video:
czcams.com/video/waDfe1-ZvDY/video.html
i love how windows was just like ‘cannot divide by zero’ and then 98 is just like ‘error; positive infinity’
why cant the answer be 0? since 1 x 0 is 0.
welp i guess calculators just like doing mysteries
🤯
1 / 0 equals infinite because you cant multiply 0 i think
No
U can divide by zero
Also multiplication is opposite to division so ERROR
With many programs x / 0 is intercepted and leads to a defined error message.
Some are not sure and claim infinity.
In the case of a few, this leads to the failure of the code.
In another video I saw an electromechanical calculating machine that began to calculate forever. Exit only by switching off.
me: any number/0 = 0
every computer in the world: ✨ I n T e R e S t E i N g ✨
Noone:
iPads: what's a calculator?
"cannot divide by zero"
literally 1974
Hey you forgot about batch! for batch: 1/0 = Divide by zero error.
Physical Calculators Section 1
0:10 Standard Calculator (E 0)
0:17 Scientific Calculator (Error 2)
Windows Calculators Section 2
0:30 Windows 1 & 2 Calculator
0:38 Windows 3.1 Calculator
(Cannot divide by zero)
0:48 Windows 95 Calculator
(Cannot divide by zero)
0:55 Windows 98 Calculator
(Error: Positive Infinity)
He accidently pressed to "+" button instead of "=" button.
0:10 is a mistake. It must be repeated with the same calculator.
@@stereoLuigi Nah, do it yourself in a calc, you'll get the same answer (Error)
I like how Mac OS just says "Not a number"
Wait! We forgot….
WINDOWS RT!
what is it
@@c猫t Windows 8.x for ARM with only Metro app support, not Win32
@@World_of_OSes thanks for the pin, it means a lot to me
Nice
@@World_of_OSes is it Windows 10 Streamlined based?
What did you think of the font sizing?
Good, please don't make Videos with robotic Voice
in notepad++?
@@neogardo1210 This video doesn't use a robotic voice.
It looks nice
Good.
love how they have the super kicked up action music in the background
Love how MikeOS says "Attempt to divide by zero" like it’s a crime
3:08 omg
Languages that output infinity will usually have a negative zero. Try it out: 1/(-0) will usually yield -Infinity.
7:11 what help do?
imgur.com/a/ykXByYn
@@World_of_OSes wow thanks!
1:03 possible
1:52 Infinity is no chance
2:03 'undefined' answer
2:11 Nan answer?!?
2:18 Try 2 ÷ 0
2:26 Calculator Error
2:52 certain calculator
3:22 invalid operation
Programming Languages:
3:33
3:45
4:30
5:19
6:02
6:46
7:03
7:16
No one knows what happens when you do it on an iPad calculator.
iPad calculator:
...
Its infinity the correct number
It is interesting theory that's backed up by result of dividing by very small numbers, but it's not that simple
Infinity is not a number
@@callback4callback4 but 1 divided by 0 is infinity because it means 1 is 0 groups so the amount that 1 group would be is infinity
0:52
*R E S P E C T*
Android before Android 5.1 - It's Infinity
Android now - NaN
My Android says "Cannot divide by zero", but One UI is different to Android.
@@avillagerplayingminecraft5833 One UI is still Android...
@@hmwndp It's Android, but customised to have different apps, looks completely different and tries to hide that it's an Android device.
Tbh adding a single if statement that will check if second number is not equal 0 is not that hard.
But if someone forget about that program would just get runtime error and crash, thats all
3:17 Anyone remember this song Sunburst? It's deleted from the NCS channel now RIP 🕊️
The possible answer of Infinity makes some sense when you think of division the following ways:
"How many times can [denominator] fit into [numerator]?"
0 fits into any number above it an infinite amount of times. Therefore, going off this logic alone, diving by zero results in Infinity.
2:59 wait a minute POGGERS?
5:45 I was glad to see that i could understand all of it. not all of my work was for nothing
I already mentioned once that a non-zero value divided by zero equals infinity. People laughed at me, it's good to know that many compilers, linkers and calculators say the same :)
0/0 is different to 1/0.
czcams.com/video/waDfe1-ZvDY/video.html
lim x->0 (x / x)
= lim x->0 (1)
= 1
/s big joke not serious
good to know compilers are as ignorant as you are?
No, draw a plot 1/x for negative x
I love how KCalc just says "nan" instead of the rest
Guys, the correct answer is "undefined" and NOT infinity
In some contexts it can be useful to work with values on the Riemann sphere, and get the result of “the point at infinity”.
Depends what you exactly you are doing / what you mean by the division, sorta .
@@drdca8263 Maths has concrete answer it doesn't work like "it depends". If denominator is 0 (not approaching 0) then the expression becomes undefined.
@@gigachad6844 effectively what I’m saying is that there are other operations one can define which have basically identical notations, and what operation one is using is understood based on the context,
Such that something which everywhere else looks like you are doing ordinary division on complex numbers, at the point where you would “divide” by “zero”, you get another point on the Riemann sphere, just like you would at any of the other points.
Obviously there is no element of any field such that multiplying it by the zero of that field, with the multiplication of that field, gives you a non-zero value.
But as long as everyone knows what everyone means, and nothing is unclear, we can use e.g. the symbol “/“ to mean what is convenient for it to mean, as an analogy to other things which are called “division” or “a quotient”.
For example, “ \bz/(0) is isomorphic as a group to \bz” is an ordinary thing to say, even though I am taking the “quotient” with respect to the “zero object” of the category of groups.
So, as you say, the answer to a question isn’t “it depends”, *unless the question isn’t sufficiently specific* . If you ask “what is the result of applying an operation to two numbers?” this of course invites the question of “what operation and what two numbers?”.
Another more clear cut example of this is in exponentiation.
Namely, “What is 0^0 ?” .
If both the 0s here are from a continuous variable, then the natural way to define it is that it is undefined.
But if you are talking about exponentiation as an operation between integers (or cardinals), it is natural to define it to be 1.
@@drdca8263 Stick to the matter, no need to go to complex numbers or "basically identical notations". You're deviating from original topic.
@@gigachad6844 Maths has concrete answers yes but only if you define in advance what mathematical system you're working with.
I personally love the answer positive infinity
1.4 M views for this?💀
Yes, I'm surprised how many views it's got. It's my most viewed video.
Stopping people from saying early
Late then 😢
stfu this is a very good video
Fr lol but I wonder why he didn’t do a pen iPhone one he did android but not iOS only Mac OS and it was an old macOS
2:50 Finally, an answer I was waiting for:♾️
0:15 uhm you pressed plus not equals
That does not matter, because pressing + will also calculate the result of 1 / 0.
The difference between = and + is that + lets you add a number to the existing result.
I think he pressed + because of muscle memory.
@@earldridgejazzedpineda9514 oh ok
1:01 I like that attitude solider!
Mad respect to my guy to test every single (not so) popular and coding languages and others to make this video
Me: *divides something by 0*
Calculator: *I will divide you by 0*
1:01 Why the hell is this positive infinity? Why not negative infinity? Why not "Cannot divide by zero."? If you make a linear graph of dividing: "1/x" then you'll see that it's something like positive infinity and negative infinity at the same time. Why the hell, Microsoft...
At least they fixed it in Windows 2000 and later.
@@World_of_OSes Yes, that's good.
calculators:
0:10-standard
0:17-scientific
Windows:
0:27-1&2
0:36-3.1
0:45-95 version
0:54-98 version
1:04-2000,ME,XP,vista
1:12-7&8.x desktop
1:21-8.1 metro
1:29-10
1:36-11
other OS:
1:44-mac OS
1:54-ubuntu
2:05-KCalc
2:13-hauku OS
2:20-visopsys
2:29-mikeOS
2:43-android x86
phone:
2:54-ALCATEL button
3:06-old LG android
3:17-Samsung android
3:23-scientific android app
Programming languages:
3:33-python
3:45-C#
4:30-Java
5:19-JavaScript
6:02-game maker
6:46-BYOB
7:03-QBasic
7:16-Bash
other:
7:31-Excel
7:41-Google
dividing zero by zero is like to cut a butter with a knife except there's no knife or butter
fun fact: if u keep divding by zero in windows it will show different messages
2:30 Why is this so nostalgic
2:52 1 ÷ 0 = Infinity:)
Idk but that's make me nostalgia
∞
I remember in TAWOG, that when Richard divided by 0 in the calculator, his PC explodes.
All other Windows: Cannot divide by zero.
Windows 98: E R R O R: P O S I T I V E I N F I N I T Y
My phone calculator saying “error” is the most intimidating thing that’s happened to me to my life
n÷0/n:0/n/0= Error/Cannot divided by zero/Error: Positive Infinity/Not a number/Division by zero is undefined/nan/Division by zero at 2/etc.
Old versions of Android showed the ∞ sign.
Android 86 calculator, OLD LG Android phone calculator and Google calculator : it's infinity
Other calculators : wait what
ALCATEL button phone calculator : *E*
Programming Languages: *-intense glitching-*