Why does 0 times infinity not equal 1?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Tell me how 1 divided by infinity does not equal 1. When you graph x * y =1, do 0 and infinity not meet at the same point? Seems like basic math to me, I was astounded when I heard someone thought it was 0 or undefined. Dividing by 0 and multiplying by infinity is the same thing. I can't look at the 2 and not see that they are reciprocals.
2 件のコメント
Roger Stafford
2017 年 12 月 29 日
@2nd Roger: Suppose you graphed x*y = 10. Then wouldn't you conclude that zero times infinity was equal to ten? That is the reason that this operation in mathematics is considered to be "undefined". It is not a matlab question - it is something that is dealt with in any course in calculus.
John D'Errico
2024 年 2 月 4 日
This problem should arguably be closed. It is not about MATLAB at all. And all it will do is attract random useless answers and comments.
回答 (4 件)
John D'Errico
2017 年 12 月 29 日
編集済み: John D'Errico
2017 年 12 月 29 日
2 投票
While you talk about "basic math", the concept of infinity can be quite paradoxical, and rarely truly basic.
inf in MATLAB is not a true number. It is a flag that MATLAB found something strange, that something should be really big, but MATLAB was not really sure how big. NaN falls in the same class, as a flag that MATLAB found something it could not resolve, an indeterminacy.
You can only view inf in terms of limits. So we can think of inf as the limit of x, as x gets arbitrarily large.
So then, what is inf*0? Again, you need to consider it in terms of a limit. But the problem is, which limit?
Is (inf*0) the limit of (x*0), as x gets arbitrarily large? In that case, inf*0 would logically be 0.
Or, is (inf*0) the limit of inf/x, as x approaches zero? If we accept that inf multiplied or divided by any positive non-zero finite constant is still inf, then inf/x must be inf.
We can as easily make arguments that inf*0 might be 1, or any value you so desire. Personally, I think it should be 17, but cogent, published arguments exist for 42 as the result. Must I provide a reference for 42? ;-)
The point is that since inf*0 really has no uniformly consistent limit, we must call it NaN. It is indeterminate.
8 件のコメント
Roger Ahier
2017 年 12 月 29 日
編集済み: Roger Ahier
2017 年 12 月 29 日
John D'Errico
2017 年 12 月 29 日
No. You cannot do so. But given your deviation into metaphysical nonsense in response to Walter, I'm done on this matter.
Rik
2017 年 12 月 29 日
Here, have an upvote for that 42 reference
Roger Ahier
2017 年 12 月 29 日
編集済み: Roger Ahier
2017 年 12 月 29 日
Walter Roberson
2017 年 12 月 29 日
There are a lot of number systems which do not have fractions, or for which "reciprocal" is defined quite differently because division is defined quite differently. For example the Integers are simply not a Group with respect to multiplication because the Integers do not contain simple fractions -- but the Integers are a Group with respect to addition.
It would indeed be strange to say that the Integers are not numbers.
Roger Ahier
2017 年 12 月 29 日
編集済み: Roger Ahier
2017 年 12 月 29 日
Walter Roberson
2017 年 12 月 30 日
Sure. Within the set of integers, f(x) might exist but 1/f(x) would not generally exist, so f(x)*1/f(x) would not be computable.
You need to start providing citations for your mathematical claims of what "number" is, and of how "*" and "/" are defined.
John D'Errico
2017 年 12 月 30 日
編集済み: Walter Roberson
2023 年 12 月 14 日
This question is rapidly de-evolving. It was never about MATLAB at all. What Roger needs to do is step back and do some reading about abstract algebra, multiplicative inverses, and infinity. For example, these might be some useful starting points that talk about 0, infinity, and multiplicative inverses:
The point is, mathematics is very clear on the subject. It hardly makes sense for us to repeat proofs that 0 does not have a multiplicative inverse, to discuss whether infinity is a number, etc. But none of that lies within the realm that MATLAB Answers should be answering.
Walter Roberson
2017 年 12 月 29 日
1/0 is infinity
2/0 is infinity
3/0 is infinity
multiply both sides by 0:
1 is infinity*0 ?
2 is infinity*0 ?
3 is infinity*0 ?
we see that infinity*0 must be all values (except perhaps 0) simultaneously. In mathematics when a value can legitimately be any value, mathematics says that the result is undefined.
2 件のコメント
Roger Ahier
2017 年 12 月 29 日
編集済み: Walter Roberson
2023 年 12 月 14 日
Walter Roberson
2017 年 12 月 29 日
Uh, no -- zero is indeed a number. https://math.stackexchange.com/questions/238737/why-do-some-people-state-that-zero-is-not-a-number
Rik
2017 年 12 月 29 日
0 投票
This is not a Matlab question.
massively simplified 'answer' incomming:
Infinity is a strange thing. If you approach it with a limit, it is easy to see how 1/x with x approaching infinity is 0.
Division by 0 is another thing. a/b=c is 'actually' solving a=b*c. This way, you see that for b=0, a and c must be 0 as well, or c can be anything, depending how you take a limit. To avoid this breaking other maths, division by 0 is generally taken to be undefined. (or sign(a)*inf, as Matlab does, except with 0/0, which results in NaN)
5 件のコメント
Rik
2017 年 12 月 29 日
If you want a better answer, I suggest posting this question on a forum that is about maths, instead of Matlab.
Roger Ahier
2017 年 12 月 29 日
編集済み: Roger Ahier
2017 年 12 月 29 日
Roger Ahier
2017 年 12 月 29 日
Rik
2017 年 12 月 29 日
If you already know the answer, why bother asking the question?
Also, it surprises me that you would need to have posted a question before you can comment. I know this is the case on StackOverflow, but if that is the case on this forum, that's something that has changed very recently.
Image Analyst
2017 年 12 月 29 日
You do need to have an account before you post a question, answer, or comment, but you do not need to post a question before you post a comment to the "someone" you were trying to help. You could have posted right there in their question.
What is the link to that person's question? For completeness, you might as well post it here, though I agree it's more of an abstract math question than a MATLAB programming question.
Hana Juneja
2023 年 12 月 14 日
0 投票
I'm not sure this is right but I'm pretty sure that 0 times infinity is zero. Here's why:
0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0...it could just keep on going infinitely, and your result would be zero even if you continued that pattern infinite times.
4 件のコメント
Walter Roberson
2023 年 12 月 14 日
Consider
1 - 1 + 1 - 1 + 1 - 1 ....
That is
(1 - 1) + (1 - 1) + (1 - 1) ....
which is 0 + 0 + 0 ... = 0.
But let use reparse it. It is equal to
1 + (-1 + 1) + (-1 + 1) + (-1 + 1) ...
which is 1 + 0 + 0 + 0 + 0 ... which is 1
"Therefore" 0 = 1
This is the exact same as your 0+0+0+0.... case since you can expand your 0 as being (1 - 1)
Raffael Aponso
2024 年 2 月 3 日
part of what you did was right, however you forgot to consider that leaving the first term of 1 out you are also leaving the term of -1 out too at the end of the summation and they pair up to cancel to 0 too.
0+0+0+...=
(1 - 1) + (1 - 1) + (1 - 1) + ....
1 + (-1 + 1) + (-1 + 1) -1 + .... which is 0
the terms in bold are the two extra terms that can pair up to 0.
Walter Roberson
2024 年 2 月 4 日
There is no "end" to the summation, so there is no "left-over" -1
John D'Errico
2024 年 2 月 4 日
How silly. And this is exactly why this question should be closed. It has nothing to do with MATLAB. The answers are going off the rails, posted by those who don't understand the concepts of infinite series, and even basic mathematics. But I suppose I might as well add this...
0 + (1 - 1) + (2 - 2) + (3 - 3) + (4 - 4) + ...
Clearly we can argue the sum is zero, since pairs of terms add up to zero, right? And the first term is already zero.
But now just rearrange the parens.
(0 + 1) + (-1 + 2) + (-2 + 3) + (-3 + 4) + ...
Each pair inside those parens now add up to 1. And there are infinitely many ones in that sum. So the sum is infinite. There is no term left off at the very end, since it will be paired with another matching term after it, that is one greater. Clearly the sum is now infinite. All I needed to do was move around the parens.
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!