Average Error: 0.0 → 0.0
Time: 592.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r14753 = x;
        double r14754 = r14753 * r14753;
        double r14755 = 1.0;
        double r14756 = r14754 - r14755;
        return r14756;
}

double f(double x) {
        double r14757 = x;
        double r14758 = r14757 * r14757;
        double r14759 = 1.0;
        double r14760 = r14758 - r14759;
        return r14760;
}

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