Average Error: 0.0 → 0.0
Time: 576.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r201784 = x;
        double r201785 = r201784 * r201784;
        double r201786 = 1.0;
        double r201787 = r201785 - r201786;
        return r201787;
}

double f(double x) {
        double r201788 = x;
        double r201789 = r201788 * r201788;
        double r201790 = 1.0;
        double r201791 = r201789 - r201790;
        return r201791;
}

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