Average Error: 0.0 → 0.0
Time: 5.5s
Precision: 64
\[x \cdot \left(1.0 - y\right)\]
\[\left(1.0 - y\right) \cdot x\]
x \cdot \left(1.0 - y\right)
\left(1.0 - y\right) \cdot x
double f(double x, double y) {
        double r8584015 = x;
        double r8584016 = 1.0;
        double r8584017 = y;
        double r8584018 = r8584016 - r8584017;
        double r8584019 = r8584015 * r8584018;
        return r8584019;
}

double f(double x, double y) {
        double r8584020 = 1.0;
        double r8584021 = y;
        double r8584022 = r8584020 - r8584021;
        double r8584023 = x;
        double r8584024 = r8584022 * r8584023;
        return r8584024;
}

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.0

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

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

Reproduce

herbie shell --seed 2019165 
(FPCore (x y)
  :name "Data.Colour.RGBSpace.HSV:hsv from colour-2.3.3, H"
  (* x (- 1.0 y)))