Post Reply 
HP Prime Miscalculating
10-23-2015, 10:12 PM
Post: #9
RE: HP Prime Miscalculating
(10-23-2015 07:38 PM)Archanus Wrote:  Hello Smile

Is there a way to obtain that result in Wolfram Mathematica?

I mean that 3.6^2-4*3.24 = -5.6843*10^(-14) , like in the HP Prime? Smile

Code:
FromDigits[RealDigits[N[3.6],2,48],2]
will give you a rational number equivalent to the 48-bit binary representation of 3.6 . Using FromDigits and RealDigits you could probably use Mathematica to simulate 48-bit binary arithmetic if you really wanted to...

If you are trying to imply that (unlike the lowly Prime) Mathematica isn't subject to rounding errors, even when working with approximate numbers, I don't think I can agree with you. On my (very old) copy of Mathematica 3.0, the calculation
Code:
(2^0.5)^2-2
gives an answer of about 4*10^{-16}.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP Prime Miscalculating - luc4as - 10-23-2015, 02:35 AM
RE: HP Prime Miscalculating - Joe Horn - 10-23-2015, 05:41 AM
RE: HP Prime Miscalculating - retoa - 10-24-2015, 12:48 PM
RE: HP Prime Miscalculating - parisse - 10-25-2015, 09:13 AM
RE: HP Prime Miscalculating - Tim Wessman - 10-23-2015, 02:54 PM
RE: HP Prime Miscalculating - retoa - 10-23-2015, 04:43 PM
RE: HP Prime Miscalculating - Tim Wessman - 10-23-2015, 04:54 PM
RE: HP Prime Miscalculating - Archanus - 10-23-2015, 07:38 PM
RE: HP Prime Miscalculating - Nigel (UK) - 10-23-2015 10:12 PM
RE: HP Prime Miscalculating - Wes Loewer - 11-01-2015, 01:16 PM
RE: HP Prime Miscalculating - Vtile - 11-01-2015, 02:05 PM
RE: HP Prime Miscalculating - Wes Loewer - 11-04-2015, 05:57 PM
RE: HP Prime Miscalculating - Vtile - 11-04-2015, 08:36 PM
RE: HP Prime Miscalculating - CyberAngel - 09-02-2018, 04:32 PM
RE: HP Prime Miscalculating - retoa - 10-23-2015, 09:33 PM
RE: HP Prime Miscalculating - retoa - 10-23-2015, 10:04 PM
RE: HP Prime Miscalculating - Archanus - 10-24-2015, 02:20 AM
RE: HP Prime Miscalculating - parisse - 10-24-2015, 06:37 AM
RE: HP Prime Miscalculating - dan_h - 10-24-2015, 02:14 PM
RE: HP Prime Miscalculating - retoa - 10-30-2015, 01:34 PM
RE: HP Prime Miscalculating - parisse - 10-31-2015, 06:34 AM
RE: HP Prime Miscalculating - Vtile - 10-31-2015, 10:50 AM
RE: HP Prime Miscalculating - Joe Horn - 11-01-2015, 02:12 AM
RE: HP Prime Miscalculating - parisse - 11-06-2015, 07:55 AM



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