Average Error: 0.0 → 0.0
Time: 14.2s
Precision: 64
\[200 \cdot \left(x - y\right)\]
\[200 \cdot \left(x - y\right)\]
200 \cdot \left(x - y\right)
200 \cdot \left(x - y\right)
double f(double x, double y) {
        double r203021 = 200.0;
        double r203022 = x;
        double r203023 = y;
        double r203024 = r203022 - r203023;
        double r203025 = r203021 * r203024;
        return r203025;
}

double f(double x, double y) {
        double r203026 = 200.0;
        double r203027 = x;
        double r203028 = y;
        double r203029 = r203027 - r203028;
        double r203030 = r203026 * r203029;
        return r203030;
}

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. Final simplification0.0

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

Reproduce

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