Average Error: 0.3 → 0.3
Time: 2.2s
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 r806721 = x;
        double r806722 = y;
        double r806723 = 3.0;
        double r806724 = r806722 * r806723;
        double r806725 = r806721 / r806724;
        return r806725;
}

double f(double x, double y) {
        double r806726 = x;
        double r806727 = y;
        double r806728 = 3.0;
        double r806729 = r806727 * r806728;
        double r806730 = r806726 / r806729;
        return r806730;
}

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 
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, C"
  :precision binary64

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

  (/ x (* y 3)))