Average Error: 0.0 → 0.0
Time: 806.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 r12771223 = x;
        double r12771224 = r12771223 * r12771223;
        double r12771225 = 1.0;
        double r12771226 = r12771224 - r12771225;
        return r12771226;
}

double f(double x) {
        double r12771227 = x;
        double r12771228 = r12771227 * r12771227;
        double r12771229 = 1.0;
        double r12771230 = r12771228 - r12771229;
        return r12771230;
}

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