Average Error: 0.3 → 0.3
Time: 1.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 r770819 = x;
        double r770820 = y;
        double r770821 = 3.0;
        double r770822 = r770820 * r770821;
        double r770823 = r770819 / r770822;
        return r770823;
}

double f(double x, double y) {
        double r770824 = x;
        double r770825 = y;
        double r770826 = 3.0;
        double r770827 = r770825 * r770826;
        double r770828 = r770824 / r770827;
        return r770828;
}

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

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

  (/ x (* y 3)))