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. 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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)