Average Error: 0.0 → 0.0
Time: 398.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 r384813 = 1.0;
        double r384814 = x;
        double r384815 = r384813 - r384814;
        double r384816 = y;
        double r384817 = r384815 - r384816;
        return r384817;
}

double f(double x, double y) {
        double r384818 = 1.0;
        double r384819 = x;
        double r384820 = r384818 - r384819;
        double r384821 = y;
        double r384822 = r384820 - r384821;
        return r384822;
}

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