Average Error: 0.0 → 0.0
Time: 1.7s
Precision: 64
\[\frac{x + y}{y + y}\]
\[\frac{x + y}{y + y}\]
\frac{x + y}{y + y}
\frac{x + y}{y + y}
double f(double x, double y) {
        double r488223 = x;
        double r488224 = y;
        double r488225 = r488223 + r488224;
        double r488226 = r488224 + r488224;
        double r488227 = r488225 / r488226;
        return r488227;
}

double f(double x, double y) {
        double r488228 = x;
        double r488229 = y;
        double r488230 = r488228 + r488229;
        double r488231 = r488229 + r488229;
        double r488232 = r488230 / r488231;
        return r488232;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[0.5 \cdot \frac{x}{y} + 0.5\]

Derivation

  1. Initial program 0.0

    \[\frac{x + y}{y + y}\]
  2. Final simplification0.0

    \[\leadsto \frac{x + y}{y + y}\]

Reproduce

herbie shell --seed 2019199 +o rules:numerics
(FPCore (x y)
  :name "Data.Random.Distribution.T:$ccdf from random-fu-0.2.6.2"

  :herbie-target
  (+ (* 0.5 (/ x y)) 0.5)

  (/ (+ x y) (+ y y)))