HP Prime Forum

Full Version: machine epsilon of the HP Prime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here's a short program that calculates the machine epsilon of the HP Prime calculator. The square root of the machine epsilon is often used for the convergence criterion for iterative algorithms such as root finders, numerical integrators, etc.

EXPORT meps()

// machine epsilon of the HP Prime

// epsilon is that number when added to one
// is still one according to the calculator




x := 1.0;

WHILE ((1.0 + x) > 1.0) DO

x := x / 2.0;



PRINT("machine epsilon = " + x);

print(" ");

print("1 + epsilon = " + (1.0 + x));


Here are the results for the HP Prime. The second calculation verifies the computed value by adding it to the number one and printing the result.

machine epsilon = 3.63797880705ᴇ−12

1 + epsilon = 1
Reference URL's