Average Error: 0.2 → 0.2
Time: 2.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 r664657 = x;
        double r664658 = y;
        double r664659 = 3.0;
        double r664660 = r664658 * r664659;
        double r664661 = r664657 / r664660;
        return r664661;
}

double f(double x, double y) {
        double r664662 = x;
        double r664663 = y;
        double r664664 = 3.0;
        double r664665 = r664663 * r664664;
        double r664666 = r664662 / r664665;
        return r664666;
}

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

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

  (/ x (* y 3)))