Average Error: 0.0 → 0.0
Time: 899.0ms
Precision: 64
\[x \cdot x - 1\]
\[x \cdot x - 1\]
x \cdot x - 1
x \cdot x - 1
double f(double x) {
        double r11949824 = x;
        double r11949825 = r11949824 * r11949824;
        double r11949826 = 1.0;
        double r11949827 = r11949825 - r11949826;
        return r11949827;
}

double f(double x) {
        double r11949828 = x;
        double r11949829 = r11949828 * r11949828;
        double r11949830 = 1.0;
        double r11949831 = r11949829 - r11949830;
        return r11949831;
}

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