Re: machine epsilon



#2

Hi,

2^(-37) is 7.3E-12, and 2^(-30) is 9.3E-10. Which makes sense, because the 42S has a 12 digits mantissa and the 41 has got 10.
Your program however is based on the assumption that the machine under test is using a 2's complement mantissa, which is not the case for the HP calcs except maybe the 71 and the 30S (correct me if I'm wrong). They're BCD based, so the epsilon should be 1E-11 and 1E-9, respectively.

NB: The way to check this is to evaluate [(1+eps)-1 == eps]?, where eps is the number mentionned above.

So the next "challenge" would be to write a small program to detect whether your machine is BCD or 2's complement based :-)

Pascal


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime : Galton's machine Mic 0 1,070 11-15-2013, 04:23 AM
Last Post: Mic
  Convergence Dream Machine anetzer 11 3,122 04-12-2013, 07:16 AM
Last Post: David Hayden
  O.T. - A pristine machine Palmer O. Hanson, Jr. 4 1,602 08-08-2012, 12:16 AM
Last Post: Dave Shaffer (Arizona)
  The Turing Machine Comes True Gilles Carpentier 1 1,213 06-26-2012, 09:26 AM
Last Post: Rory Molinari (USA)
  (OT) Lego Turing machine BruceH 9 3,010 06-22-2012, 08:14 AM
Last Post: Bill (Smithville, NJ)
  HP-71B: Trying to run 2CDCC on a 1BBBB machine Hans Brueggemann 12 3,632 04-27-2012, 06:51 PM
Last Post: Olivier De Smet
  41CL installation on machine with zebra strip David Ramsey 14 4,327 12-30-2011, 01:19 PM
Last Post: Monte Dalrymple
  A Simulator for a Stack Machine Thomas Klemm 0 905 10-19-2011, 03:02 PM
Last Post: Thomas Klemm
  My First Red LED Machine (HP 45) Norman Dziedzic 8 2,429 07-09-2010, 08:02 AM
Last Post: Norman Dziedzic
  OT: A Turing machine in the classical style Juergen Keller 3 1,321 05-01-2010, 02:16 AM
Last Post: Juergen Keller

Forum Jump: