Average Error: 0.1 → 0.1
Time: 17.5s
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 r75427 = x;
        double r75428 = 1.0;
        double r75429 = y;
        double r75430 = r75427 * r75429;
        double r75431 = r75428 - r75430;
        double r75432 = r75427 * r75431;
        return r75432;
}

double f(double x, double y) {
        double r75433 = x;
        double r75434 = 1.0;
        double r75435 = y;
        double r75436 = r75433 * r75435;
        double r75437 = r75434 - r75436;
        double r75438 = r75433 * r75437;
        return r75438;
}

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 2019325 
(FPCore (x y)
  :name "Numeric.SpecFunctions:log1p from math-functions-0.1.5.2, A"
  :precision binary64
  (* x (- 1 (* x y))))