Average Error: 0.1 → 0.1
Time: 13.1s
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 r60143 = x;
        double r60144 = 1.0;
        double r60145 = y;
        double r60146 = r60143 * r60145;
        double r60147 = r60144 - r60146;
        double r60148 = r60143 * r60147;
        return r60148;
}

double f(double x, double y) {
        double r60149 = x;
        double r60150 = 1.0;
        double r60151 = y;
        double r60152 = r60149 * r60151;
        double r60153 = r60150 - r60152;
        double r60154 = r60149 * r60153;
        return r60154;
}

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