Average Error: 0.0 → 0.0
Time: 818.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r8777245 = x;
        double r8777246 = r8777245 * r8777245;
        double r8777247 = 1.0;
        double r8777248 = r8777246 - r8777247;
        return r8777248;
}

double f(double x) {
        double r8777249 = x;
        double r8777250 = r8777249 * r8777249;
        double r8777251 = 1.0;
        double r8777252 = r8777250 - r8777251;
        return r8777252;
}

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\]
  2. Final simplification0.0

    \[\leadsto x \cdot x - 1\]

Reproduce

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