Average Error: 0.0 → 0.0
Time: 583.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 r11906302 = x;
        double r11906303 = r11906302 * r11906302;
        double r11906304 = 1.0;
        double r11906305 = r11906303 - r11906304;
        return r11906305;
}

double f(double x) {
        double r11906306 = x;
        double r11906307 = r11906306 * r11906306;
        double r11906308 = 1.0;
        double r11906309 = r11906307 - r11906308;
        return r11906309;
}

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 2019163 
(FPCore (x)
  :name "Data.Random.Dice:roll from dice-0.1"
  (- (* x x) 1.0))