The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
JRPN 15C/16C: More faithful rounding simulation
09-03-2024, 05:52 PM
Post: #1
JRPN 15C/16C: More faithful rounding simulation
Hi all,

Perhaps of some interest here, I just released to beta an update to the JRPN 15C/16C simulators that make their rounding behavior more like the original. In a previous release, I implemented floating-point decimal addition and subtraction (instead of using the computer's internal IEEE floating point binary, and converting to decimal). Now I've implemented floating-point decimal multiplication and division, with rounding away from zero (like the real 15C, and unlike IEEE math). The new `DecimalFP` internal class is used everywhere appropriate, which covers a pretty big percentage of the 15C's functions. Only things like the trig functions, ln, sqrt, and stuff like that use binary floating point now (and the trig functions are special-cased in degree and grad modes so that, e.g., cos(90 degrees) gives exactly 0.)


I mostly noticed the different (improved?) rounding behavior on one or two matrix operation regression tests.

Since a lot of lines of code were touched, I'm first publishing this as a "beta," which means a beta release on Android and Linux, and publication to the web version (https://jrpn.jovial.com). The new version is called "1.1.16 beta1" under Help -> About. I'll probably leave it in this beta state for a week or so. If anyone needs a build for a different platform, happy to provide one.

Now the only use of IEEE binary floating point math is for things like
Anyway, if anyone has some tests they'd like to run through this new version, that would be most welcome.

Cheers,

Bill
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
JRPN 15C/16C: More faithful rounding simulation - billf - 09-03-2024 05:52 PM



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