[WP-34S] DEG and RAD - diffs
06-06-2014, 08:33 AM
Post: #21
 Paul Dale Senior Member Posts: 1,757 Joined: Dec 2013
RE: [WP-34S] DEG and RAD - diffs
(06-06-2014 08:21 AM)Thomas Klemm Wrote:  Or do you calculate $$e^x-1$$ directly without extinction for small x?

Yes. The EXP-1 function already exists to do this. I actually calculate:

sinh(x) = ((z * 0.5) / (z+1)) * (z+1+1), where z = $$e^x-1$$

The order of operations should avoid overflow issues which is why I think this ought to work for larger x. Still, the obvious approach works for large x and will be faster.

- Pauli
 « Next Oldest | Next Newest »