Average Error: 0.2 → 0.2
Time: 21.8s
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 r625002 = x;
        double r625003 = y;
        double r625004 = 3.0;
        double r625005 = r625003 * r625004;
        double r625006 = r625002 / r625005;
        return r625006;
}

double f(double x, double y) {
        double r625007 = x;
        double r625008 = y;
        double r625009 = 3.0;
        double r625010 = r625008 * r625009;
        double r625011 = r625007 / r625010;
        return r625011;
}

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.2
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 2019326 +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)))