Calculating e^x-1 on classic HPs
|
01-14-2016, 07:20 AM
Post: #13
|
|||
|
|||
RE: Calculating e^x-1 on classic HPs
A nice identity using hyperbolics is: ex-1 = tanh(x/2) (ex+1)
The 34S uses: Code:
As William Kahan said of this: nearly full working relative accuracy despite cancellation no matter how tiny x may be. Dieter's method avoids the conditionals which is a plus for some machines. - Pauli |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 13 Guest(s)