Average Error: 0.2 → 0.2
Time: 9.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 r636594 = x;
        double r636595 = y;
        double r636596 = 3.0;
        double r636597 = r636595 * r636596;
        double r636598 = r636594 / r636597;
        return r636598;
}

double f(double x, double y) {
        double r636599 = x;
        double r636600 = y;
        double r636601 = 3.0;
        double r636602 = r636600 * r636601;
        double r636603 = r636599 / r636602;
        return r636603;
}

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

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

  (/ x (* y 3)))