Average Error: 0.0 → 0.0
Time: 11.4s
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 r295017 = 200.0;
        double r295018 = x;
        double r295019 = y;
        double r295020 = r295018 - r295019;
        double r295021 = r295017 * r295020;
        return r295021;
}

double f(double x, double y) {
        double r295022 = 200.0;
        double r295023 = x;
        double r295024 = y;
        double r295025 = r295023 - r295024;
        double r295026 = r295022 * r295025;
        return r295026;
}

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 2019351 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, C"
  :precision binary64
  (* 200 (- x y)))