Average Error: 0.0 → 0.0
Time: 320.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r207300 = x;
        double r207301 = r207300 * r207300;
        double r207302 = 1.0;
        double r207303 = r207301 - r207302;
        return r207303;
}

double f(double x) {
        double r207304 = x;
        double r207305 = r207304 * r207304;
        double r207306 = 1.0;
        double r207307 = r207305 - r207306;
        return r207307;
}

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