Average Error: 0.0 → 0.0
Time: 629.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r149941 = x;
        double r149942 = r149941 * r149941;
        double r149943 = 1.0;
        double r149944 = r149942 - r149943;
        return r149944;
}

double f(double x) {
        double r149945 = x;
        double r149946 = r149945 * r149945;
        double r149947 = 1.0;
        double r149948 = r149946 - r149947;
        return r149948;
}

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