WP 34S mini-challenge
|
01-22-2014, 05:27 PM
Post: #48
|
|||
|
|||
RE: WP 34S mini-challenge
(01-22-2014 01:12 PM)Dieter Wrote:(01-21-2014 04:07 PM)Didier Lachieze Wrote: Well, here is a solution working on both the 42S and WP 34S, not limited to integers and where I don't see the rounding error highlighted above: What is wrong with 28.0000000001? That's a perfect 28 for all practical purposes :-) Of course the original formula (n^2 + n)/2 is better because it always yields exact results for integer arguments (even when using binary number formats), but occasional errors of a few ULP's are acceptable (and expected) when using a digital computer or calculator, IMHO. Regards, Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)