Average Error: 0.0 → 0.0
Time: 897.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 r92620 = x;
        double r92621 = y;
        double r92622 = r92620 * r92621;
        double r92623 = 2.0;
        double r92624 = r92622 / r92623;
        return r92624;
}

double f(double x, double y) {
        double r92625 = y;
        double r92626 = 2.0;
        double r92627 = r92625 / r92626;
        double r92628 = x;
        double r92629 = r92627 * r92628;
        return r92629;
}

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 2019196 
(FPCore (x y)
  :name "Numeric.Interval.Internal:scale from intervals-0.7.1, B"
  (/ (* x y) 2.0))