Average Error: 0.2 → 0.2
Time: 12.7s
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 r508349 = x;
        double r508350 = y;
        double r508351 = 3.0;
        double r508352 = r508350 * r508351;
        double r508353 = r508349 / r508352;
        return r508353;
}

double f(double x, double y) {
        double r508354 = x;
        double r508355 = y;
        double r508356 = 3.0;
        double r508357 = r508355 * r508356;
        double r508358 = r508354 / r508357;
        return r508358;
}

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

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

  (/ x (* y 3.0)))