Post Reply 
Euler Identity in Home
04-16-2014, 12:02 PM (This post was last modified: 04-16-2014 12:12 PM by Dieter.)
Post: #54
RE: Euler Identity in Home
(04-16-2014 08:23 AM)DavidM Wrote:  I don't have a large collection of calculating/computing systems to compare, but I can say that I have checked the following systems to see what the result of "sin(3.14159265359)" is for each one:

Let me add just two remarks:

1. The true value of sin(3,14159265359000000...) is 2,0676 15373 56616 72049 71158...·10–13-.

For arguments that close to \(\pi\) the first 20+ significant digits for sin(x) and tan(x) agree with \(\pi\) – x. This means that the results given by Wolfram Alpha and Excel have merely three valid digits. In the latter case this probably is due to the fact that Excel uses binary arithmetics and 3,14159265359 cannot be represented exactly with the usual 52 mantissa bits. If x is off by 2–53 the error in sin(x) will be roughly the same, i.e. about 10–16. Which agrees with the error in the result you posted.

2. For evaluating trig functions, calculators often use a method that requires an internal value of \(\pi\) with at least twice the number of returned significant digits for a full precision result. However, the HP and TI devices I used only carry three additional digits for internal calculations. This explains the behaviour of your TI-34, which BTW is the same as in earlier HP 10-digit calculators:

(04-16-2014 08:23 AM)DavidM Wrote:  The only TI calculator I have is a TI-34 (a 10-digit unit). Here's the results it gave:
a) 3.141592654 SIN: -4.1E-10
b) <pi> SIN: 0

The internal value of \(\pi\) is 3,141592653590 (rounded to 13 digits). Since sin(x) here essentially is \(\pi\) – x = –4,1E–10, this it what you see.
If you use the \(\pi\) key, the internal 13-digit value is entered so that \(\pi\) – x becomes zero.

(04-16-2014 08:23 AM)DavidM Wrote:  Pressing the <pi> key results in the display showing the value 3.141592654 (the same as item a above). But clearly there's a difference. In an attempt to see that difference, I tried the following:
<pi> - 3.141592654 = -4.1E-10

Right. That's 3,141592653590 – 3,141592654. Which agrees with the returned sine value because for the TI-34 \(\pi\) equals 3,141592653590.

(04-16-2014 08:23 AM)DavidM Wrote:  It appears the TI-34 is carrying more digits than it displays for pi.

Sure. It carries 13 digits not just for \(\pi\). Try e1 – 2,718281828.

(04-16-2014 08:23 AM)DavidM Wrote:  Of those systems, only the TI-34 rounded the final result to 0, and it only did that when I used the special key for pi. Granted, we are focused on calculators here. But the insistence that zero or 0.000000000000 is a more correct answer for sin(3.14159265359) than -2.068E-13 seems to be a TI-specific viewpoint which isn't shared by the other math libraries I am able to compare it to.

All this is due to the way sin(x) is evaluated. As already stated, many (most?) calculators use an algorithm where sin(x) for x so close to \(\pi\) is \(\pi\) – x. If you press the \(\pi\) key, x equals the 13-digit internal \(\pi\) value, so sin(x) = \(\pi\) – x becomes zero. It's that simple. On the other hand, HP's 10-digit devices use their 13 digits only internally, so you cannot enter a 13-digit \(\pi\) value. 3,141592654 is as close you can get – both manually and by using the \(\pi\) key. So the result is always the difference between the 10-digit and the internal 13-digit representation of \(\pi\): –4,1E–10.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Euler Identity in Home - ColinJDenman - 04-04-2014, 12:09 AM
RE: Euler Identity in Home - Helge Gabert - 04-04-2014, 12:57 AM
RE: Euler Identity in Home - ColinJDenman - 04-04-2014, 01:14 AM
RE: Euler Identity in Home - Helge Gabert - 04-04-2014, 01:48 AM
RE: Euler Identity in Home - ColinJDenman - 04-04-2014, 05:09 AM
RE: Euler Identity in Home - Joe Horn - 04-04-2014, 09:26 PM
RE: Euler Identity in Home - orcinus - 04-05-2014, 04:08 AM
RE: Euler Identity in Home - jebem - 04-05-2014, 04:18 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 04:28 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 04:35 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 04:41 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 04:59 PM
RE: Euler Identity in Home - ColinJDenman - 04-27-2014, 10:59 PM
RE: Euler Identity in Home - HP67 - 04-04-2014, 06:05 AM
RE: Euler Identity in Home - orcinus - 04-04-2014, 04:18 PM
RE: Euler Identity in Home - DrD - 04-05-2014, 06:11 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 07:32 PM
RE: Euler Identity in Home - ColinJDenman - 04-05-2014, 08:44 PM
RE: Euler Identity in Home - jebem - 04-05-2014, 09:18 PM
RE: Euler Identity in Home - ColinJDenman - 04-05-2014, 09:54 PM
RE: Euler Identity in Home - Joe Horn - 04-06-2014, 06:42 AM
RE: Euler Identity in Home - orcinus - 04-05-2014, 10:56 PM
RE: Euler Identity in Home - ColinJDenman - 04-05-2014, 11:38 PM
RE: Euler Identity in Home - orcinus - 04-06-2014, 01:33 PM
RE: Euler Identity in Home - ColinJDenman - 04-06-2014, 11:17 PM
RE: Euler Identity in Home - peacecalc - 04-06-2014, 10:07 AM
RE: Euler Identity in Home - jebem - 04-06-2014, 02:11 PM
RE: Euler Identity in Home - ColinJDenman - 04-06-2014, 11:31 PM
RE: Euler Identity in Home - orcinus - 04-07-2014, 04:08 PM
RE: Euler Identity in Home - Han - 04-07-2014, 07:33 PM
RE: Euler Identity in Home - debrouxl - 04-06-2014, 05:26 PM
RE: Euler Identity in Home - Tim Wessman - 04-07-2014, 04:32 PM
RE: Euler Identity in Home - HP67 - 04-08-2014, 07:41 AM
RE: Euler Identity in Home - orcinus - 04-08-2014, 01:31 PM
RE: Euler Identity in Home - Joe Horn - 04-08-2014, 11:43 PM
RE: Euler Identity in Home - ColinJDenman - 04-14-2014, 02:48 PM
RE: Euler Identity in Home - Han - 04-14-2014, 06:17 PM
RE: Euler Identity in Home - ColinJDenman - 04-17-2014, 08:29 PM
RE: Euler Identity in Home - Han - 04-17-2014, 11:49 PM
RE: Euler Identity in Home - Han - 04-14-2014, 07:31 PM
RE: Euler Identity in Home - Han - 04-14-2014, 10:47 PM
RE: Euler Identity in Home - Han - 04-15-2014, 07:46 PM
RE: Euler Identity in Home - CR Haeger - 04-14-2014, 10:45 PM
RE: Euler Identity in Home - Joe Horn - 04-16-2014, 06:26 AM
RE: Euler Identity in Home - DavidM - 04-16-2014, 08:23 AM
RE: Euler Identity in Home - Dieter - 04-16-2014 12:02 PM
RE: Euler Identity in Home - Han - 04-16-2014, 03:09 PM
RE: Euler Identity in Home - Joe Horn - 04-15-2014, 10:30 PM
RE: Euler Identity in Home - Joe Horn - 04-16-2014, 09:46 PM
RE: Euler Identity in Home - Han - 04-18-2014, 01:37 AM
RE: Euler Identity in Home - debrouxl - 04-28-2014, 05:59 AM



User(s) browsing this thread: 1 Guest(s)