Average Error: 0.2 → 0.2
Time: 1.4s
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 r720451 = x;
        double r720452 = y;
        double r720453 = 3.0;
        double r720454 = r720452 * r720453;
        double r720455 = r720451 / r720454;
        return r720455;
}

double f(double x, double y) {
        double r720456 = x;
        double r720457 = y;
        double r720458 = 3.0;
        double r720459 = r720457 * r720458;
        double r720460 = r720456 / r720459;
        return r720460;
}

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

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

  (/ x (* y 3)))