Average Error: 0.0 → 0.0
Time: 327.0ms
Precision: 64
\[\left(1 - x\right) - y\]
\[\left(1 - x\right) - y\]
\left(1 - x\right) - y
\left(1 - x\right) - y
double f(double x, double y) {
        double r262615 = 1.0;
        double r262616 = x;
        double r262617 = r262615 - r262616;
        double r262618 = y;
        double r262619 = r262617 - r262618;
        return r262619;
}

double f(double x, double y) {
        double r262620 = 1.0;
        double r262621 = x;
        double r262622 = r262620 - r262621;
        double r262623 = y;
        double r262624 = r262622 - r262623;
        return r262624;
}

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

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

Reproduce

herbie shell --seed 2020025 
(FPCore (x y)
  :name "Data.Colour.CIE.Chromaticity:chromaCoords from colour-2.3.3"
  :precision binary64
  (- (- 1 x) y))