Average Error: 0.3 → 0.3
Time: 9.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 r561118 = x;
        double r561119 = y;
        double r561120 = 3.0;
        double r561121 = r561119 * r561120;
        double r561122 = r561118 / r561121;
        return r561122;
}

double f(double x, double y) {
        double r561123 = x;
        double r561124 = y;
        double r561125 = 3.0;
        double r561126 = r561124 * r561125;
        double r561127 = r561123 / r561126;
        return r561127;
}

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