Average Error: 0.1 → 0.1
Time: 14.0s
Precision: 64
\[x \cdot \left(1 - x \cdot y\right)\]
\[x \cdot \left(1 - x \cdot y\right)\]
x \cdot \left(1 - x \cdot y\right)
x \cdot \left(1 - x \cdot y\right)
double f(double x, double y) {
        double r68266 = x;
        double r68267 = 1.0;
        double r68268 = y;
        double r68269 = r68266 * r68268;
        double r68270 = r68267 - r68269;
        double r68271 = r68266 * r68270;
        return r68271;
}

double f(double x, double y) {
        double r68272 = x;
        double r68273 = 1.0;
        double r68274 = y;
        double r68275 = r68272 * r68274;
        double r68276 = r68273 - r68275;
        double r68277 = r68272 * r68276;
        return r68277;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[x \cdot \left(1 - x \cdot y\right)\]
  2. Final simplification0.1

    \[\leadsto x \cdot \left(1 - x \cdot y\right)\]

Reproduce

herbie shell --seed 2019326 
(FPCore (x y)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, A"
  :precision binary64
  (* x (- 1 (* x y))))