HP41: accuracy of 13digit routines

09042015, 12:07 PM
(This post was last modified: 09042015 12:28 PM by Ángel Martin.)
Post: #13




RE: HP41: accuracy of 13digit routines
[attachment=2492]
(09032015 06:17 PM)Dieter Wrote: ... the basic formula is: I finally got around to doing the changes in the GAMMA code, using the coefficients you came up with. See the attached MOD file with the modified verison of the function already compiled. Indeed the results are very much the same, with the exception of points around x=1, see the comparison table that also has the WolframAlpha colum as 'exact' answers: (as usual I can't get the table format right... Code:
The new code is 44 bytes shorter and on average it takes about 0.3 seconds less to execute than the original function based on Viktor's formula with 7 coefficients. Why it isn't more of a difference can be explained by the fact that even if the original had two more terms it was easier to calculate using Honer's method  which cannot be applied in the modified version. So all in all it's better  with a caveat in that region mentioned before. No idea why would that be the case, right? Á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)