Average Error: 0.0 → 0.0
Time: 344.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r252688 = x;
        double r252689 = r252688 * r252688;
        double r252690 = 1.0;
        double r252691 = r252689 - r252690;
        return r252691;
}

double f(double x) {
        double r252692 = x;
        double r252693 = r252692 * r252692;
        double r252694 = 1.0;
        double r252695 = r252693 - r252694;
        return r252695;
}

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