Average Error: 0.2 → 0.2
Time: 8.4s
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 r584545 = x;
        double r584546 = y;
        double r584547 = 3.0;
        double r584548 = r584546 * r584547;
        double r584549 = r584545 / r584548;
        return r584549;
}

double f(double x, double y) {
        double r584550 = x;
        double r584551 = y;
        double r584552 = 3.0;
        double r584553 = r584551 * r584552;
        double r584554 = r584550 / r584553;
        return r584554;
}

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

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

  (/ x (* y 3)))