Average Error: 0.0 → 0.0
Time: 336.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r264431 = x;
        double r264432 = r264431 * r264431;
        double r264433 = 1.0;
        double r264434 = r264432 - r264433;
        return r264434;
}

double f(double x) {
        double r264435 = x;
        double r264436 = r264435 * r264435;
        double r264437 = 1.0;
        double r264438 = r264436 - r264437;
        return r264438;
}

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