Average Error: 0.0 → 0.0
Time: 595.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 r224750 = 1.0;
        double r224751 = x;
        double r224752 = r224750 - r224751;
        double r224753 = y;
        double r224754 = r224752 - r224753;
        return r224754;
}

double f(double x, double y) {
        double r224755 = 1.0;
        double r224756 = x;
        double r224757 = r224755 - r224756;
        double r224758 = y;
        double r224759 = r224757 - r224758;
        return r224759;
}

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