Average Error: 0.0 → 0
Time: 902.0ms
Precision: 64
\[\frac{x \cdot y}{2}\]
\[\frac{y}{2} \cdot x\]
\frac{x \cdot y}{2}
\frac{y}{2} \cdot x
double f(double x, double y) {
        double r102217 = x;
        double r102218 = y;
        double r102219 = r102217 * r102218;
        double r102220 = 2.0;
        double r102221 = r102219 / r102220;
        return r102221;
}

double f(double x, double y) {
        double r102222 = y;
        double r102223 = 2.0;
        double r102224 = r102222 / r102223;
        double r102225 = x;
        double r102226 = r102224 * r102225;
        return r102226;
}

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

    \[\frac{x \cdot y}{2}\]
  2. Simplified0

    \[\leadsto \color{blue}{\frac{y}{2} \cdot x}\]
  3. Final simplification0

    \[\leadsto \frac{y}{2} \cdot x\]

Reproduce

herbie shell --seed 2019194 
(FPCore (x y)
  :name "Numeric.Interval.Internal:scale from intervals-0.7.1, B"
  (/ (* x y) 2.0))