Average Error: 0.0 → 0.0
Time: 623.0ms
Precision: 64
\[x \cdot x - 1.0\]
\[x \cdot x - 1.0\]
x \cdot x - 1.0
x \cdot x - 1.0
double f(double x) {
        double r9932113 = x;
        double r9932114 = r9932113 * r9932113;
        double r9932115 = 1.0;
        double r9932116 = r9932114 - r9932115;
        return r9932116;
}

double f(double x) {
        double r9932117 = x;
        double r9932118 = r9932117 * r9932117;
        double r9932119 = 1.0;
        double r9932120 = r9932118 - r9932119;
        return r9932120;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot x - 1.0\]
  2. Final simplification0.0

    \[\leadsto x \cdot x - 1.0\]

Reproduce

herbie shell --seed 2019162 
(FPCore (x)
  :name "Data.Random.Dice:roll from dice-0.1"
  (- (* x x) 1.0))