Average Error: 0.0 → 0.0
Time: 9.8s
Precision: 64
\[\left(1 - x\right) - y\]
\[1 - \left(y + x\right)\]
\left(1 - x\right) - y
1 - \left(y + x\right)
double f(double x, double y) {
        double r13347542 = 1.0;
        double r13347543 = x;
        double r13347544 = r13347542 - r13347543;
        double r13347545 = y;
        double r13347546 = r13347544 - r13347545;
        return r13347546;
}

double f(double x, double y) {
        double r13347547 = 1.0;
        double r13347548 = y;
        double r13347549 = x;
        double r13347550 = r13347548 + r13347549;
        double r13347551 = r13347547 - r13347550;
        return r13347551;
}

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

    \[\left(1 - x\right) - y\]
  2. Using strategy rm
  3. Applied associate--l-0.0

    \[\leadsto \color{blue}{1 - \left(x + y\right)}\]
  4. Final simplification0.0

    \[\leadsto 1 - \left(y + x\right)\]

Reproduce

herbie shell --seed 2019200 
(FPCore (x y)
  :name "Data.Colour.CIE.Chromaticity:chromaCoords from colour-2.3.3"
  (- (- 1.0 x) y))