Average Error: 0.0 → 0.0
Time: 734.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 r262446 = 1.0;
        double r262447 = x;
        double r262448 = r262446 - r262447;
        double r262449 = y;
        double r262450 = r262448 - r262449;
        return r262450;
}

double f(double x, double y) {
        double r262451 = 1.0;
        double r262452 = x;
        double r262453 = r262451 - r262452;
        double r262454 = y;
        double r262455 = r262453 - r262454;
        return r262455;
}

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 2019322 
(FPCore (x y)
  :name "Data.Colour.CIE.Chromaticity:chromaCoords from colour-2.3.3"
  :precision binary64
  (- (- 1 x) y))