Average Error: 0.3 → 0.3
Time: 5.9s
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 r597145 = x;
        double r597146 = y;
        double r597147 = 3.0;
        double r597148 = r597146 * r597147;
        double r597149 = r597145 / r597148;
        return r597149;
}

double f(double x, double y) {
        double r597150 = x;
        double r597151 = y;
        double r597152 = 3.0;
        double r597153 = r597151 * r597152;
        double r597154 = r597150 / r597153;
        return r597154;
}

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

Reproduce

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

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

  (/ x (* y 3)))