Average Error: 0.2 → 0.2
Time: 9.1s
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 r817195 = x;
        double r817196 = y;
        double r817197 = 3.0;
        double r817198 = r817196 * r817197;
        double r817199 = r817195 / r817198;
        return r817199;
}

double f(double x, double y) {
        double r817200 = x;
        double r817201 = y;
        double r817202 = 3.0;
        double r817203 = r817201 * r817202;
        double r817204 = r817200 / r817203;
        return r817204;
}

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 2020045 +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)))