Post Reply 
WP-34S galUS-> l Precision
09-09-2016, 06:43 PM
Post: #12
RE: WP-34S galUS-> l Precision
(09-09-2016 08:05 AM)Paul Dale Wrote:  How does newRPL deal with unit conversions unrepresentable with decimal arithmetic?

Mustn't there be a precision loss involved with these using floating point arithmetic, even though they might be exact some of the time using rational arithmetic?



Pauli

Yes, there's a loss but operations are deferred to the last minute. For example, 1/7937 is stored as a "fake" unit that is defined as 7937, then if a unit needs a conversion of 1/7937, I just used that fake unit with a -1 exponent.
For newRPL this was an absolute must because of the variable precision in the system. If you set the system to 2000 digits, you expect 1/7937 to be represented with 2000 digits, so instead of trying to store them, they are computed at run time (you pay the price in speed, but you get the precision that's selected).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
WP-34S galUS-> l Precision - Nick - 09-07-2016, 10:20 PM
RE: WP-34S galUS-> l Precision - Paul Dale - 09-07-2016, 11:56 PM
RE: WP-34S galUS-> l Precision - Joe Horn - 09-08-2016, 05:02 AM
RE: WP-34S galUS-> l Precision - Nick - 09-09-2016, 04:47 AM
RE: WP-34S galUS-> l Precision - Dol - 09-09-2016, 08:04 AM
RE: WP-34S galUS-> l Precision - Paul Dale - 09-09-2016, 08:05 AM
RE: WP-34S galUS-> l Precision - Claudio L. - 09-09-2016 06:43 PM
RE: WP-34S galUS-> l Precision - renif - 09-08-2016, 01:15 PM
RE: WP-34S galUS-> l Precision - Nick - 09-08-2016, 02:49 PM
RE: WP-34S galUS-> l Precision - Nick - 09-10-2016, 05:22 PM
RE: WP-34S galUS-> l Precision - Nick - 09-11-2016, 04:11 PM
RE: WP-34S galUS-> l Precision - Dieter - 11-27-2016, 03:12 PM
RE: WP-34S galUS-> l Precision - Paul Dale - 12-10-2016, 11:19 PM
RE: WP-34S galUS-> l Precision - Paul Dale - 12-12-2016, 01:46 AM
RE: WP-34S galUS-> l Precision - Paul Dale - 12-12-2016, 09:02 AM
RE: WP-34S galUS-> l Precision - emece67 - 12-14-2016, 03:41 PM
RE: WP-34S galUS-> l Precision - Vtile - 12-16-2016, 02:46 PM
RE: WP-34S galUS-> l Precision - Vtile - 12-16-2016, 10:50 PM



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