Average Error: 0.1 → 0.1
Time: 15.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 r31873 = x;
        double r31874 = 1.0;
        double r31875 = y;
        double r31876 = r31873 * r31875;
        double r31877 = r31874 - r31876;
        double r31878 = r31873 * r31877;
        return r31878;
}

double f(double x, double y) {
        double r31879 = x;
        double r31880 = 1.0;
        double r31881 = y;
        double r31882 = r31879 * r31881;
        double r31883 = r31880 - r31882;
        double r31884 = r31879 * r31883;
        return r31884;
}

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