Average Error: 0.3 → 0.3
Time: 2.4s
Precision: 64
\[\frac{x}{y \cdot 3}\]
\[\frac{x}{y \cdot 3}\]
\frac{x}{y \cdot 3}
\frac{x}{y \cdot 3}
double f(double x, double y) {
        double r704708 = x;
        double r704709 = y;
        double r704710 = 3.0;
        double r704711 = r704709 * r704710;
        double r704712 = r704708 / r704711;
        return r704712;
}

double f(double x, double y) {
        double r704713 = x;
        double r704714 = y;
        double r704715 = 3.0;
        double r704716 = r704714 * r704715;
        double r704717 = r704713 / r704716;
        return r704717;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.3
Target0.2
Herbie0.3
\[\frac{\frac{x}{y}}{3}\]

Derivation

  1. Initial program 0.3

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

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

Reproduce

herbie shell --seed 2020001 +o rules:numerics
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, C"
  :precision binary64

  :herbie-target
  (/ (/ x y) 3)

  (/ x (* y 3)))