Average Error: 0.0 → 0.0
Time: 869.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 r23457648 = x;
        double r23457649 = r23457648 * r23457648;
        double r23457650 = 1.0;
        double r23457651 = r23457649 - r23457650;
        return r23457651;
}

double f(double x) {
        double r23457652 = x;
        double r23457653 = r23457652 * r23457652;
        double r23457654 = 1.0;
        double r23457655 = r23457653 - r23457654;
        return r23457655;
}

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