Average Error: 0.3 → 0.3
Time: 13.8s
Precision: 64
\[\frac{x}{y \cdot 3}\]
\[\frac{x}{3 \cdot y}\]
\frac{x}{y \cdot 3}
\frac{x}{3 \cdot y}
double f(double x, double y) {
        double r32840729 = x;
        double r32840730 = y;
        double r32840731 = 3.0;
        double r32840732 = r32840730 * r32840731;
        double r32840733 = r32840729 / r32840732;
        return r32840733;
}

double f(double x, double y) {
        double r32840734 = x;
        double r32840735 = 3.0;
        double r32840736 = y;
        double r32840737 = r32840735 * r32840736;
        double r32840738 = r32840734 / r32840737;
        return r32840738;
}

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}{3 \cdot y}\]

Reproduce

herbie shell --seed 2019169 
(FPCore (x y)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, C"

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

  (/ x (* y 3.0)))