Trig algorithms on HP RPN?
|
Yesterday, 01:39 PM
Post: #1
|
|||
|
|||
Trig algorithms on HP RPN?
Can someone tell me if the trig algorithms for HP (and other RPN calculators) are all done in radians (behind the scenes). The reason I ask is I've been trying out the Mike Sebastian Forensic test.
It is of course meant to find the underlying chip used, regardless of brand name. But it gives a (very) rough estimation of accuracy, and the results I get using 0.15707 radians are startlingly better than with 9 degrees. HP-25 degrees 9.0040 error 0.05% HP-25 radians 8.9999 error 0.00003% Any Soviet Elektronika programmable RPN (eg B3-34) degrees 9.0881 error 1% Any Soviet Elektronika programmable RPN (eg B3-34) radians 9.0000 error 0.0003% Sinclair Scientific radians 8.9381 error 0.7% (no degree mode) Thanks. |
|||
Yesterday, 02:09 PM
(This post was last modified: Yesterday 02:11 PM by Idnarn.)
Post: #2
|
|||
|
|||
RE: Trig algorithms on HP RPN?
(Yesterday 01:39 PM)MinkLib Wrote: Can someone tell me if the trig algorithms for HP (and other RPN calculators) are all done in radians (behind the scenes). While the answer cannot be generalized as it may depend on the particular calculator, if you want an example, see the paper "Algorithms and Accuracy in the HP-35" by David S. Cochran (example, here: https://www.keesvandersanden.nl/calculat..._HP-35.pdf) which describes trigonometry function calculation on the HP-35. I read somewhere (was it an interview with William Kahan?) that the HP 15C code derived from it. You can also browse Jacques Laporte's excellent reverse engineering of the HP-35 here: https://archived.hpcalc.org/laporte/index.html https://archived.hpcalc.org/laporte/Trigonometry.htm |
|||
Yesterday, 03:15 PM
Post: #3
|
|||
|
|||
RE: Trig algorithms on HP RPN?
See this thread where I asked the same seven weeks ago:
https://www.hpmuseum.org/forum/thread-22486.html The best calculator is the one you actually use. |
|||
Yesterday, 03:49 PM
Post: #4
|
|||
|
|||
RE: Trig algorithms on HP RPN?
(Yesterday 01:39 PM)MinkLib Wrote: Can someone tell me if the trig algorithms for HP (and other RPN calculators) are all done in radians (behind the scenes). Although the HP-35 only uses degrees for trigonometric functions, it still seems to use the \(\tan^{-1}\) values in radians: Code: 0-0716 0730 load constant 7 reg['C'] = 0x00700000000000 And then a bit later: Code: 0-0617 1030 load constant 8 reg['C'] = 0x00099668666666 This is output from running x11-calc-35 with the -t option: Code: -t, trace Compare this to (using RAD): 1 ATAN 0.78539816340 0.1 ATAN 0.09966865249 From my understanding of CORDIC we might as well use angles in degrees. Honestly, I don't know why that wasn't used instead. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 10 Guest(s)