Why Do Different Solving Methods Yield Different Results for (sin(x)/x) = x?

  • Context: Undergrad 
  • Thread starter Thread starter k_squared
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
k_squared
Messages
62
Reaction score
0
Mathematics news on Phys.org
Computers have inherent limitations. The answer is in fact still zero.

When a computer uses a numerical method to approximate the solution to an equation such as the one you gave, it simply can not calculate the answer exactly. It turns out that different representations of functions can give different computational results, which you have just seen.
(Why are computers ultimately inaccurate? Consider an irrational number like pi, 3.1415926... etc. Pi never ends. Well computers are inherently discrete systems and so a computer can NEVER represent an infinite decimal like pi. A computer only has so many bits and can only represent rational numbers ultimately. The computer's number line has "gaps".
Couple this limitation of computers with the following fact. It turns out that there are way more irrationals than there are rationals on the real number line. So much more in fact that if you picked a number at random off of the real number line, the probability that you would pick a rational is 0. Not 0.0000000001. Flat out zero.)

Moral of the Story:
This is one of the reasons computers are not the end all be all. A good thing to know.
 
Integral said:
Yet another example of a number that a digital computer cannot represent exactly is .1.

You mean, "a binary computer" not "a digital computer". There are decimal computers (in, e.g., many calculators) that do not have this issue. (And of course they can be emulated even on binary computers, as in the Decimal type in C#.)