Average Error: 0.0 → 0.1
Time: 14.4s
Precision: 64
\[x - \frac{y}{200}\]
\[x - 0.005000000000000000104083408558608425664715 \cdot y\]
x - \frac{y}{200}
x - 0.005000000000000000104083408558608425664715 \cdot y
double f(double x, double y) {
        double r249947 = x;
        double r249948 = y;
        double r249949 = 200.0;
        double r249950 = r249948 / r249949;
        double r249951 = r249947 - r249950;
        return r249951;
}

double f(double x, double y) {
        double r249952 = x;
        double r249953 = 0.005;
        double r249954 = y;
        double r249955 = r249953 * r249954;
        double r249956 = r249952 - r249955;
        return r249956;
}

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

    \[x - \frac{y}{200}\]
  2. Taylor expanded around 0 0.1

    \[\leadsto \color{blue}{x - 0.005000000000000000104083408558608425664715 \cdot y}\]
  3. Final simplification0.1

    \[\leadsto x - 0.005000000000000000104083408558608425664715 \cdot y\]

Reproduce

herbie shell --seed 2019306 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, D"
  :precision binary64
  (- x (/ y 200)))