Average Error: 0.2 → 0.2
Time: 16.6s
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 r511825 = x;
        double r511826 = y;
        double r511827 = 3.0;
        double r511828 = r511826 * r511827;
        double r511829 = r511825 / r511828;
        return r511829;
}

double f(double x, double y) {
        double r511830 = x;
        double r511831 = y;
        double r511832 = 3.0;
        double r511833 = r511831 * r511832;
        double r511834 = r511830 / r511833;
        return r511834;
}

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

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

  (/ x (* y 3)))