Average Error: 0.0 → 0.0
Time: 1.6s
Precision: 64
\[200 \cdot \left(x - y\right)\]
\[200 \cdot x + 200 \cdot \left(-y\right)\]
200 \cdot \left(x - y\right)
200 \cdot x + 200 \cdot \left(-y\right)
double f(double x, double y) {
        double r360761 = 200.0;
        double r360762 = x;
        double r360763 = y;
        double r360764 = r360762 - r360763;
        double r360765 = r360761 * r360764;
        return r360765;
}

double f(double x, double y) {
        double r360766 = 200.0;
        double r360767 = x;
        double r360768 = r360766 * r360767;
        double r360769 = y;
        double r360770 = -r360769;
        double r360771 = r360766 * r360770;
        double r360772 = r360768 + r360771;
        return r360772;
}

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

    \[200 \cdot \left(x - y\right)\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.9

    \[\leadsto \color{blue}{\left(\sqrt{200} \cdot \sqrt{200}\right)} \cdot \left(x - y\right)\]
  4. Applied associate-*l*0.5

    \[\leadsto \color{blue}{\sqrt{200} \cdot \left(\sqrt{200} \cdot \left(x - y\right)\right)}\]
  5. Using strategy rm
  6. Applied sub-neg0.5

    \[\leadsto \sqrt{200} \cdot \left(\sqrt{200} \cdot \color{blue}{\left(x + \left(-y\right)\right)}\right)\]
  7. Applied distribute-lft-in0.5

    \[\leadsto \sqrt{200} \cdot \color{blue}{\left(\sqrt{200} \cdot x + \sqrt{200} \cdot \left(-y\right)\right)}\]
  8. Applied distribute-lft-in0.5

    \[\leadsto \color{blue}{\sqrt{200} \cdot \left(\sqrt{200} \cdot x\right) + \sqrt{200} \cdot \left(\sqrt{200} \cdot \left(-y\right)\right)}\]
  9. Simplified0.3

    \[\leadsto \color{blue}{200 \cdot x} + \sqrt{200} \cdot \left(\sqrt{200} \cdot \left(-y\right)\right)\]
  10. Simplified0.0

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

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

Reproduce

herbie shell --seed 2020036 
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  :precision binary64
  (* 200 (- x y)))