Average Error: 0.2 → 0.2
Time: 10.7s
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 r472240 = x;
        double r472241 = y;
        double r472242 = 3.0;
        double r472243 = r472241 * r472242;
        double r472244 = r472240 / r472243;
        return r472244;
}

double f(double x, double y) {
        double r472245 = x;
        double r472246 = y;
        double r472247 = 3.0;
        double r472248 = r472246 * r472247;
        double r472249 = r472245 / r472248;
        return r472249;
}

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.2
Target0.3
Herbie0.2
\[\frac{\frac{x}{y}}{3}\]

Derivation

  1. Initial program 0.2

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

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

Reproduce

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

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

  (/ x (* y 3.0)))