Calculating e^x-1 on classic HPs
|
01-14-2016, 09:14 PM
Post: #22
|
|||
|
|||
RE: Calculating e^x-1 on classic HPs
(01-14-2016 06:42 PM)Dieter Wrote: Simple. Write a short test program on the 34s emulator (the "real thing" is quite fast, but too slow for tasks like this). Evaluate ex–1 for a random argument within the desired domain, using the method you want to test. Then determine the difference to the exact result provided by the internal function. The result is an integer (the number of ULPs the approximation is off). Increment one of, say, 11 registers that count the number of occurences for ≤–5, –4, –3, ... , +4, ≥+5 ULP. Do this 100.000 times. ;-) Thanks for the clarification. For no reason I assumed the results from the wp34s where compared against those of another "external" tool, such as Mathematica or similar. That's the reason for my surprise. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)