Average Error: 0.0 → 0.0
Time: 5.0s
Precision: 64
\[\left(1 - x\right) - y\]
\[1 - \left(x + y\right)\]
\left(1 - x\right) - y
1 - \left(x + y\right)
double f(double x, double y) {
        double r16370648 = 1.0;
        double r16370649 = x;
        double r16370650 = r16370648 - r16370649;
        double r16370651 = y;
        double r16370652 = r16370650 - r16370651;
        return r16370652;
}

double f(double x, double y) {
        double r16370653 = 1.0;
        double r16370654 = x;
        double r16370655 = y;
        double r16370656 = r16370654 + r16370655;
        double r16370657 = r16370653 - r16370656;
        return r16370657;
}

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. Using strategy rm
  3. Applied associate--l-0.0

    \[\leadsto \color{blue}{1 - \left(x + y\right)}\]
  4. Final simplification0.0

    \[\leadsto 1 - \left(x + y\right)\]

Reproduce

herbie shell --seed 2019171 
(FPCore (x y)
  :name "Data.Colour.CIE.Chromaticity:chromaCoords from colour-2.3.3"
  (- (- 1.0 x) y))