Average Error: 0.0 → 0.0
Time: 635.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 r7850699 = x;
        double r7850700 = r7850699 * r7850699;
        double r7850701 = 1.0;
        double r7850702 = r7850700 - r7850701;
        return r7850702;
}

double f(double x) {
        double r7850703 = x;
        double r7850704 = r7850703 * r7850703;
        double r7850705 = 1.0;
        double r7850706 = r7850704 - r7850705;
        return r7850706;
}

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