Average Error: 0.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 r81749 = x;
        double r81750 = y;
        double r81751 = r81749 * r81750;
        double r81752 = 2.0;
        double r81753 = r81751 / r81752;
        return r81753;
}

double f(double x, double y) {
        double r81754 = y;
        double r81755 = 2.0;
        double r81756 = r81754 / r81755;
        double r81757 = x;
        double r81758 = r81756 * r81757;
        return r81758;
}

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.0

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

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

Reproduce

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