Possible bug on HP50G with very large numbers
|
11-02-2019, 07:44 PM
(This post was last modified: 11-03-2019 03:42 AM by Wes Loewer.)
Post: #15
|
|||
|
|||
RE: Possible bug on HP50G with very large numbers
(11-02-2019 04:11 PM)Gerald H Wrote: For input The program gives 5.36934575514 instead of 5.36934575513, which I think is as good as a UserRPL can get using real numbers. The correct rounding would require sysRPL's extended reals (or a more sophisticated program). This example is an interesting one. The answer to 16 decimal places is 5.369345755134671 which when rounded to 12 significant digits is 5.36934575513. The program calculates -0.630654244865 + 6 which would have been 5.369345755135 but is rounded to 5.36934575514. It's the classic case where having fewer significant digits happens to give a better answer than having more. Code: 5.36934575513 12 significant digits |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)