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.
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: th-cam.com/video/waDfe1-ZvDY/w-d-xo.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.
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?
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 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
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
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
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
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.
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".
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.
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 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.
@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"); }
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.
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.
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.
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.
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.
It would have been interesting to see the result in the scientific mode of calculators from windows 8.1 onwards,and also the operational systems that allow it, still interesting and very good video
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
Did not know js returns infinity, and I looked into it and it's quite interesting oh and also the google calculator just evaluates whatever you input with js, with a little trickery you could make it error out for good by manipulating some variables
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.
An explainer for anyone wondering what's so wrong with division by zero: You're familiar with how division and multiplication can have equivalent statements, yes? If A / B = C, then C * B = A. For example, if 8 / 4 = 2, then 2 * 4 = 8. So, let's hypothetically say that 7 / 0 = 1. Thus, 1 * 0 = 7, right? Wrong! "1 * 0 = 7" is obviously a false statement, because any number multiplied by zero must equal zero. Since the equivalent multiplication statement is false, then there's no way that the original division statement can be true either. There is no number which can be placed as the result of any division by zero that can check out under these inherent traits of division and multiplication, with the only exception being if the statement was nothing but zeroes...but honestly, how useful is "0 * 0 = 0"?
another way of demostrating would be making the sucession 1/(0.1)^n and calculate the limit, which would go towards infinity, and then do it in reverse 1/-(0.1)^n, which would go towards negative infinity, and since both are aproaching to 0 but from different places, but also give totally different answers, it could be safe to assume that its undefined.
Was there any particular track(s) that belong in 2007, or do all of them belong in 2007? 0:00 - Elektronomia - Energy [NCS Release] 3:18 - Tobu & Itro - Sunburst [NCS Release] 6:25 - Distrion & Alex Skrindo - Lightning [NCS Release]
@@DontEatGaming oooooh i thought the commenter was saying “you should not use float values” he was just saying how the guy who made this video didn’t use float values im dumb lol
Linux users
👇
why is it pinned
@@linorder22 true
Hi
IUABTW
I was surprised that there is no 0
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
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
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.
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:
th-cam.com/video/waDfe1-ZvDY/w-d-xo.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.
0/0 irl : nothing happens and just says "Error"
0/0 in cartoons : *NUCLEAR EXPLOSION*
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
@@Syl-kll_619 what abkut 2/0?? 400/0??? 5838388/0??
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?
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*
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.
@@roslynnamy.nan means Not a number
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, ведь делим одинаковые числа, с другой стороны ноль, потому что мы делим ноль на число, а с третьей - бесконечность, так как делим число на ноль. Именно поэтому это выражение никак не определено.
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)
∞
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
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
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
imagine installing a lot of operating systems just for divide a number by zero
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
@@SpaceSysZ _s h r e d t h e m_
@@cycrothelargeplanet *_s h r e d t h e m_*
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
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
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
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".
dude that sync in 3:16
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
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.
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?
@@Canada-pop-cat ³
@@Canada-pop-cat Character Map
@@Canada-pop-cat¾
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!
I like how C# has a exception specifically for Dividing by Zero
same with python my guy
@@martysh1226 yeah
A classic of C...
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
You're really testing the universe here!
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
what kind of pocket dimension was he in? doing this would have literally shattered the fabric of reality 90 times over.
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?
@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");
}
Everyone gangsta until the calculator create a blackhole
FAIL
Sorry, I was in the bathroom. What’d I mi- Where’d… Where is everyone?
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
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.
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
I like the way Ubuntu says it as it feels the most "correct"
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)
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
A person divinding one by zero in differents calculators
625 thousand other peoples: wow, this is very interesting
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.
Languages that output infinity will usually have a negative zero. Try it out: 1/(-0) will usually yield -Infinity.
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.
love how they have the super kicked up action music in the background
2:50 Ok, that ACTUALLY gave the answer! 👍
Bruh i laughed when mac os said "not a number" idk it looked funny to me😂
🤣
Yeah same 😂
Kde just: nan
I personally love the answer positive infinity
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
i love how windows was just like ‘cannot divide by zero’ and then 98 is just like ‘error; positive infinity’
3:52 LIGHT THEME, MY EYES
?
@@LucasTheFootballGod dói
THINK FAST CHUCKLENUTS!
*throws flashbang*
@@LucasTheFootballGod dói
@@LucasTheFootballGoddói
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.
This guy knows every programming language 😂
"cannot divide by zero"
literally 1974
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
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.
Noone:
iPads: what's a calculator?
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.
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.
2:59 wait a minute POGGERS?
me: any number/0 = 0
every computer in the world: ✨ I n T e R e S t E i N g ✨
Mad respect to my guy to test every single (not so) popular and coding languages and others to make this video
Programming Languages:
3:33
3:45
4:30
5:19
6:02
6:46
7:03
7:16
Wait! We forgot….
WINDOWS RT!
@the scratch guy 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?
@@World_of_OSes you forgor ubunto calculator
It would have been interesting to see the result in the scientific mode of calculators from windows 8.1 onwards,and also the operational systems that allow it, still interesting and very good video
Love how MikeOS says "Attempt to divide by zero" like it’s a crime
This video taught me that can not divide by zero
2:30 Why is this so nostalgic
"how many programming languages do you know?"
_this guy:_ *yes*
0:52
*R E S P E C T*
exploding multiple universes in order to find out whats the awnser of diving by 0
Thank you. You answered a question we didn't know we needed the answer to.
Человек выучил все языки программирования и пытается разделить 1 на 0.
А вы что сделали?
Я включил ПК
Thanks to the author for posting the comment
я встал с кровати
Я купил новую колду
не все, есть lua и lua для роблокса
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:
th-cam.com/video/waDfe1-ZvDY/w-d-xo.html
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
what an incredible video! good stuff
I like how Mac OS just says "Not a number"
1:01 I like that attitude solider!
Hey you forgot about batch! for batch: 1/0 = Divide by zero error.
3:08 omg
This was the most interesting video, I've watched in a while! Big thanks, for your work!
Dividing by zero is like the oppisite of the meaning of life number (42)
Did not know js returns infinity, and I looked into it and it's quite interesting
oh and also the google calculator just evaluates whatever you input with js, with a little trickery you could make it error out for good by manipulating some variables
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.
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.
Dave: HAL, divide 1 by 0.
HAL 9000: I'm sorry Dave, I can't do that!
I love how KCalc just says "nan" instead of the rest
we have
reached peak entertainment
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
No one knows what happens when you do it on an iPad calculator.
iPad calculator:
...
@@World_of_OSesiPads don't even have a calculator.
An explainer for anyone wondering what's so wrong with division by zero:
You're familiar with how division and multiplication can have equivalent statements, yes? If A / B = C, then C * B = A. For example, if 8 / 4 = 2, then 2 * 4 = 8.
So, let's hypothetically say that 7 / 0 = 1. Thus, 1 * 0 = 7, right? Wrong! "1 * 0 = 7" is obviously a false statement, because any number multiplied by zero must equal zero. Since the equivalent multiplication statement is false, then there's no way that the original division statement can be true either. There is no number which can be placed as the result of any division by zero that can check out under these inherent traits of division and multiplication, with the only exception being if the statement was nothing but zeroes...but honestly, how useful is "0 * 0 = 0"?
another way of demostrating would be making the sucession 1/(0.1)^n and calculate the limit, which would go towards infinity, and then do it in reverse 1/-(0.1)^n, which would go towards negative infinity, and since both are aproaching to 0 but from different places, but also give totally different answers, it could be safe to assume that its undefined.
1 ÷ 0 is Infinity
(Scratch calculator 0.7)
2:52 1 ÷ 0 = Infinity:)
Idk but that's make me nostalgia
∞
It's the first thing you do, when you are programming calculator :D making sure you can't divide by zero
Take your music back to 2007 😂😂
Was there any particular track(s) that belong in 2007, or do all of them belong in 2007?
0:00 - Elektronomia - Energy [NCS Release]
3:18 - Tobu & Itro - Sunburst [NCS Release]
6:25 - Distrion & Alex Skrindo - Lightning [NCS Release]
Worry about that forehead and wrinkles you got
@@World_of_OSes maybe she wrote 2007 instead of 2017
Btw there isnt any issue in using NCS 2014 - 2018 music
@@World_of_OSes How can a comment be so polite and savage at the same time 😭
You got me tbh
I remember in TAWOG, that when Richard divided by 0 in the calculator, his PC explodes.
Me: *divides something by 0*
Calculator: *I will divide you by 0*
My phone calculator saying “error” is the most intimidating thing that’s happened to me to my life
7:11 what help do?
imgur.com/a/ykXByYn
@@World_of_OSes wow thanks!
You never check what happens when dividing by zero using Python float values.
1.0 / 0.0
What happens?
@@surgicalmaterials its just the same DivisionByZero error
"ZeroDivisionError: float division by zero"
@@World_of_OSes My mistake. I confused this with the answer for 1/math.inf
@@DontEatGaming oooooh i thought the commenter was saying “you should not use float values” he was just saying how the guy who made this video didn’t use float values im dumb lol
FACT: NO ONE SEARCHED FOR IT, IT JUST APPEARED RANDOMLY