Average Error: 0.0 → 0.0
Time: 829.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 r218324 = 1.0;
        double r218325 = x;
        double r218326 = r218324 - r218325;
        double r218327 = y;
        double r218328 = r218326 - r218327;
        return r218328;
}

double f(double x, double y) {
        double r218329 = 1.0;
        double r218330 = x;
        double r218331 = r218329 - r218330;
        double r218332 = y;
        double r218333 = r218331 - r218332;
        return r218333;
}

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