Post Reply 
Calculating e^x-1 on classic HPs
01-15-2016, 02:00 PM (This post was last modified: 01-15-2016 02:03 PM by Dieter.)
Post: #29
RE: Calculating e^x-1 on classic HPs
(01-15-2016 01:19 AM)Paul Dale Wrote:  ex–1 is calculated using 39 digits.

I should switch to your method. It will possibly be slightly faster and it is more accurate.

You should stay with the current code. Who cares about the last digit in a 39-digit calculation when only 34 digits are returned to the user? And who knows the accuracy of the exp and log functions? Finally, the current method is Kahan-proof. ;-)

But you can speed up the ex–1 function by adding the test whether ex>2 resp. v>1. This avoids, for larger arguments, a call of the log function which, as far as I remember, is particulary slow on the 34s.

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


Messages In This Thread
Calculating e^x-1 on classic HPs - Dieter - 01-11-2016, 10:20 PM
RE: Calculating e^x-1 on classic HPs - Dieter - 01-15-2016 02:00 PM



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