Average Error: 0.2 → 0.2
Time: 6.3s
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 r497746 = x;
        double r497747 = y;
        double r497748 = 3.0;
        double r497749 = r497747 * r497748;
        double r497750 = r497746 / r497749;
        return r497750;
}

double f(double x, double y) {
        double r497751 = x;
        double r497752 = y;
        double r497753 = 3.0;
        double r497754 = r497752 * r497753;
        double r497755 = r497751 / r497754;
        return r497755;
}

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

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

  (/ x (* y 3)))