Average Error: 0.0 → 0.0
Time: 416.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 r87414 = 1.0;
        double r87415 = x;
        double r87416 = r87414 - r87415;
        double r87417 = y;
        double r87418 = r87416 - r87417;
        return r87418;
}

double f(double x, double y) {
        double r87419 = 1.0;
        double r87420 = x;
        double r87421 = r87419 - r87420;
        double r87422 = y;
        double r87423 = r87421 - r87422;
        return r87423;
}

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