Post Reply 
HP 35S: Hyperbolics Bug?
07-24-2015, 12:14 PM (This post was last modified: 07-25-2015 04:23 AM by Marcio.)
Post: #4
RE: HP 35S: Hyperbolics Bug?
(07-24-2015 11:27 AM)Paul Dale Wrote:  It would be surprising. The hyperbolics don't have the same nasty cases as the circular trigonometric functions. There are still concerns but they aren't so insidious as with the circular functions.

The näive formula for \( cosh(x) = \frac{e^x + e^{-x}}{2} \) is stable across the entire domain.

The näive formula for \( sinh(x) = \frac{e^x - e^{-x}}{2} \) isn't. It encounters cancellation issues as x -> 0. This would be the place I'd go hunting for accuracy loss both for sinh and tanh.

If I remember correctly, I played with these functions quite a bit a while ago and couldn't find any loss of accuracy inside the working limits of the 35s. It seems the loss of precision pops up when you use complex numbers to calculate SIN or COS:.

\[ cos(x) = \frac{e^{ix} + e^{-ix}}{2} \]

Even so, in order for this problem to appear, the argument must be really small (for example, 1E-7) and the result multiplied by its inverse (1E7).

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


Messages In This Thread
HP 35S: Hyperbolics Bug? - Gerald H - 07-24-2015, 10:45 AM
RE: HP 35S: Hyperbolics Bug? - Marcio - 07-24-2015, 11:14 AM
RE: HP 35S: Hyperbolics Bug? - Paul Dale - 07-24-2015, 11:27 AM
RE: HP 35S: Hyperbolics Bug? - Marcio - 07-24-2015 12:14 PM
RE: HP 35S: Hyperbolics Bug? - Marcio - 07-24-2015, 01:33 PM
RE: HP 35S: Hyperbolics Bug? - Marcio - 07-24-2015, 04:49 PM
RE: HP 35S: Hyperbolics Bug? - Marcio - 07-25-2015, 04:22 AM



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