Average Error: 0.2 → 0.2
Time: 1.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 r928951 = x;
        double r928952 = y;
        double r928953 = 3.0;
        double r928954 = r928952 * r928953;
        double r928955 = r928951 / r928954;
        return r928955;
}

double f(double x, double y) {
        double r928956 = x;
        double r928957 = y;
        double r928958 = 3.0;
        double r928959 = r928957 * r928958;
        double r928960 = r928956 / r928959;
        return r928960;
}

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

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

  (/ x (* y 3)))