Average Error: 0.3 → 0.3
Time: 18.1s
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 r784049 = x;
        double r784050 = y;
        double r784051 = 3.0;
        double r784052 = r784050 * r784051;
        double r784053 = r784049 / r784052;
        return r784053;
}

double f(double x, double y) {
        double r784054 = x;
        double r784055 = y;
        double r784056 = 3.0;
        double r784057 = r784055 * r784056;
        double r784058 = r784054 / r784057;
        return r784058;
}

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.2
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 2020043 +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)))