Speaking of this formula, is actually a classic question, recently saw a video said to draw a conclusion: the answer is 0.5, I think it is very interesting, when we go to school, we all calculate:
1, the formula as (1-1) + (1-1) + (1-1) ... Because each part is 0, the result is 0.
2. If it is 1-(1-1)-(1-1) ... Since all but the first one is 0, the result is 1.
You can see that with different perspectives, the results are different, that is, different people to see the problem, the answer is inconsistent, such a question is usually quite interesting, this can dig out a lot of fun, but today we focus on the problem itself! Share with you today a little bit about this formula story and experience!
In fact, this series (mathematical nouns, indicating the sequence of some data items), is no result, analysis of this moment is 1 minutes is 0 of the phenomenon is called: "Do not converge"! Image of said: Live bump jump, instability in a value above!
Theoretically seemingly perfect solution to the problem, but the conclusion is "no results", but always a regret. I have to emphasize that: can not solve the problem of people, as the problem can not be solved! (Need a certain understanding)
Finally someone put forward the plan, he is so calculate:
1. Suppose 1-1+1-1+...=s
2, then 1-s=1-(1-1+1-1+ ...) ) =1-1+1-1+1...=s
3, so, 1-s=s, apparently, s=0.5
The man was very clever, he knew he could not solve the problem, left the problem to the problem itself, using the contradiction to offset the results. Unfortunately, he finally raised a stupid question, he asked: if the 1 as a turn on the lights, 1 as a turn off the light, then the equation is equivalent to turn on the lights, turn off the lights, turn on the lights, turn off the lights, turn on the lights ... Infinite repeat go on, excuse me the light is open or shut!
Alas, fall into the trap of mortals! Let's answer his question. Everyone is a programmer, we do not say that the problem of lights, let us convert the problem equivalence to our familiar areas! Talk about the computer processor, how does the processor work?
1, the computer only has a finite processor core, this assumes only 1
2, in order to be able to serve any program, the processor takes turns processing their request
3, probably is this: processing a, processing B, processing A, processing B, processing A, processing B ...
4, for a, it is faced with: get treatment, lose processing, get treatment, lose processing ...
5, you see, like a very "turn on the lights, turn off the lights, turn on the lights, turn off the lights, turn on the lights ..." ”
Well, ask a question, for a, how many cores does the computer have? Perhaps this is a better answer: "For a, how about the performance of the computer?" "Here, we all know that ignoring the performance loss of scheduling, performance to A is half of the overall performance, that is, 0.5 processors."
So, the one who worked out the formula that turned out to be 0.5, but couldn't answer the question of turn on the lights, can have the answer, with the frequency of switching lights more and more quickly, in people's observation, the lamp is a flash flash, flash fast, the human eye can not tell the light is turned off, it seems that the light is open, but not so bright, is half the brightness.
Reiterate the point of view: Fast is a property, fast to a certain degree, things will change, people do not so fast, the computer can! Try to know, you take the program to make a box black for a while white, you see that the box is not gray?
Well, the story is about to end, according to the convention I want to talk about the idea of the data! If you really do some programs, you will find that the CPU fast and you seem to have nothing to do, so fast things are wasted by you, a kind of make the feeling of force, do not know what can be used to do! Whenever this time, think of data, only data can let the fast-changing program to find the coordinates, find the right direction does not lose themselves, and only data can let the program really quickly up, make a different interesting things! More derivative please read my article "The World Martial arts, invincible, only fast and not broken."
Come on, here's a fresh, hot popsicle!
Ps:
Watch the video point here
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/project/