Average Error: 0.0 → 0.0
Time: 325.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 r232671 = 1.0;
        double r232672 = x;
        double r232673 = r232671 - r232672;
        double r232674 = y;
        double r232675 = r232673 - r232674;
        return r232675;
}

double f(double x, double y) {
        double r232676 = 1.0;
        double r232677 = x;
        double r232678 = r232676 - r232677;
        double r232679 = y;
        double r232680 = r232678 - r232679;
        return r232680;
}

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