Average Error: 0.0 → 0.0
Time: 2.4s
Precision: 64
\[\frac{x \cdot y}{2}\]
\[x \cdot \frac{y}{2}\]
\frac{x \cdot y}{2}
x \cdot \frac{y}{2}
double f(double x, double y) {
        double r71101 = x;
        double r71102 = y;
        double r71103 = r71101 * r71102;
        double r71104 = 2.0;
        double r71105 = r71103 / r71104;
        return r71105;
}

double f(double x, double y) {
        double r71106 = x;
        double r71107 = y;
        double r71108 = 2.0;
        double r71109 = r71107 / r71108;
        double r71110 = r71106 * r71109;
        return r71110;
}

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. Using strategy rm
  3. Applied *-un-lft-identity0.0

    \[\leadsto \frac{x \cdot y}{\color{blue}{1 \cdot 2}}\]
  4. Applied times-frac0.0

    \[\leadsto \color{blue}{\frac{x}{1} \cdot \frac{y}{2}}\]
  5. Simplified0.0

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

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

Reproduce

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