HP41: accuracy of 13digit routines

09022015, 11:05 AM
(This post was last modified: 09022015 11:07 AM by Ángel Martin.)
Post: #5




RE: HP41: accuracy of 13digit routines
(09022015 10:18 AM)Dieter Wrote: Thank you very much. So the 13digit routines truncate after 13 digits. I assume this also applies to the transcendental functions (log, exp, trig etc.). Now if I set a WP34s to RM 4 (truncate) and apply a RSD 13 to every result, this should yield the same result as the 41's 13digit routines? Typically that seems to be the case: the 13digit result is held in the {A,B} registers, with the 13digit mantissa in B<12:0> and the sign and exponent in A. Once the math routine is done it transfers the mantissa from B to the C register, most usually using the instruction C=B M  thus it is a 10digit version made by direct truncation. I however have done some rounding *prior* to this truncation in some of my own math functions  hard to remember which ones though... Cheers, ÁM "To live or die by your own sword one must first learn to wield it aptly." 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)