Average Error: 0.0 → 0.0
Time: 1.1s
Precision: 64
\[1 - x \cdot x\]
\[1 - x \cdot x\]
1 - x \cdot x
1 - x \cdot x
double f(double x) {
        double r48897212 = 1.0;
        double r48897213 = x;
        double r48897214 = r48897213 * r48897213;
        double r48897215 = r48897212 - r48897214;
        return r48897215;
}

double f(double x) {
        double r48897216 = 1.0;
        double r48897217 = x;
        double r48897218 = r48897217 * r48897217;
        double r48897219 = r48897216 - r48897218;
        return r48897219;
}

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

    \[1 - x \cdot x\]
  2. Final simplification0.0

    \[\leadsto 1 - x \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "1-x*x"
  (- 1 (* x x)))