Average Error: 0.0 → 0
Time: 1.0s
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 r104140 = x;
        double r104141 = y;
        double r104142 = r104140 * r104141;
        double r104143 = 2.0;
        double r104144 = r104142 / r104143;
        return r104144;
}

double f(double x, double y) {
        double r104145 = y;
        double r104146 = 2.0;
        double r104147 = r104145 / r104146;
        double r104148 = x;
        double r104149 = r104147 * r104148;
        return r104149;
}

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))