Average Error: 0.2 → 0.2
Time: 2.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 r762532 = x;
        double r762533 = y;
        double r762534 = 3.0;
        double r762535 = r762533 * r762534;
        double r762536 = r762532 / r762535;
        return r762536;
}

double f(double x, double y) {
        double r762537 = x;
        double r762538 = y;
        double r762539 = 3.0;
        double r762540 = r762538 * r762539;
        double r762541 = r762537 / r762540;
        return r762541;
}

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 +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)))