Average Error: 0.3 → 0.3
Time: 15.2s
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 r650832 = x;
        double r650833 = y;
        double r650834 = 3.0;
        double r650835 = r650833 * r650834;
        double r650836 = r650832 / r650835;
        return r650836;
}

double f(double x, double y) {
        double r650837 = x;
        double r650838 = y;
        double r650839 = 3.0;
        double r650840 = r650838 * r650839;
        double r650841 = r650837 / r650840;
        return r650841;
}

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

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

  (/ x (* y 3)))