Average Error: 0.0 → 0.0
Time: 798.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r30066598 = x;
        double r30066599 = r30066598 * r30066598;
        double r30066600 = 1.0;
        double r30066601 = r30066599 - r30066600;
        return r30066601;
}

double f(double x) {
        double r30066602 = x;
        double r30066603 = r30066602 * r30066602;
        double r30066604 = 1.0;
        double r30066605 = r30066603 - r30066604;
        return r30066605;
}

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