Calculating e^x-1 on classic HPs
|
01-13-2016, 03:46 PM
Post: #10
|
|||
|
|||
RE: Calculating e^x-1 on classic HPs
(01-12-2016 08:16 PM)Dieter Wrote: The following version returns ex–1 while it saves the Y-register. It also does not use R^ which is missing on some of the classic calculators. Very nice, thank you! Just tested it on the HP-12C. I've tried an hyperbolic function approach on the HP-15C using the identity \[e^{x}-1=\frac{2}{\coth \frac{x}{2}-1}\] Code:
However this will require two additional steps to handle x=0. Also, for |x| > 3 the results start to lose accuracy as tanh(|x/2|) approaches 1. Congratulations for your brilliant method! Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)