Average Error: 0.0 → 0.0
Time: 749.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r8795199 = x;
        double r8795200 = r8795199 * r8795199;
        double r8795201 = 1.0;
        double r8795202 = r8795200 - r8795201;
        return r8795202;
}

double f(double x) {
        double r8795203 = x;
        double r8795204 = r8795203 * r8795203;
        double r8795205 = 1.0;
        double r8795206 = r8795204 - r8795205;
        return r8795206;
}

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