Post Reply 
Exact integer arithmetic in Home?
10-28-2014, 03:16 PM
Post: #12
RE: Exact integer arithmetic in Home?
(10-28-2014 01:07 PM)Jake Schwartz Wrote:  
(10-28-2014 03:58 AM)Joe Horn Wrote:  Here's a tiny Home program which multiplies 12345678901235 times 234567890123456 and returns the complete correct product of 28958998520042431946358064320:
Just for grins, I entered the two numbers into the WP 34S and after multiplying, got a different result. I then tried Wolfram Alpha and got the same result as the WP 34S, which was puzzling. Then noticed that the first number in the sentence was missing the digit "4" at the end in "12345" as was shown in the actual code example (which had the "4"). After putting in the 4, the 34S, Wolfram and the 29-digit product above all were in agreement and my faith was restored in double-precision mode of the 34S :-)

Thanks for catching that typo, Jake! It has been corrected in my original posting.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Exact integer arithmetic in Home? - Joe Horn - 10-28-2014 03:16 PM



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