Average Error: 0.0 → 0.0
Time: 1.0s
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r147434 = x;
        double r147435 = r147434 * r147434;
        double r147436 = 1.0;
        double r147437 = r147435 - r147436;
        return r147437;
}

double f(double x) {
        double r147438 = x;
        double r147439 = r147438 * r147438;
        double r147440 = 1.0;
        double r147441 = r147439 - r147440;
        return r147441;
}

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