Average Error: 0.0 → 0.0
Time: 784.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r194874 = x;
        double r194875 = r194874 * r194874;
        double r194876 = 1.0;
        double r194877 = r194875 - r194876;
        return r194877;
}

double f(double x) {
        double r194878 = x;
        double r194879 = r194878 * r194878;
        double r194880 = 1.0;
        double r194881 = r194879 - r194880;
        return r194881;
}

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