Average Error: 0.1 → 0.1
Time: 41.3s
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 r71818 = x;
        double r71819 = 1.0;
        double r71820 = y;
        double r71821 = r71818 * r71820;
        double r71822 = r71819 - r71821;
        double r71823 = r71818 * r71822;
        return r71823;
}

double f(double x, double y) {
        double r71824 = x;
        double r71825 = 1.0;
        double r71826 = y;
        double r71827 = r71824 * r71826;
        double r71828 = r71825 - r71827;
        double r71829 = r71824 * r71828;
        return r71829;
}

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