Average Error: 0.2 → 0.2
Time: 1.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 r671119 = x;
        double r671120 = y;
        double r671121 = 3.0;
        double r671122 = r671120 * r671121;
        double r671123 = r671119 / r671122;
        return r671123;
}

double f(double x, double y) {
        double r671124 = x;
        double r671125 = y;
        double r671126 = 3.0;
        double r671127 = r671125 * r671126;
        double r671128 = r671124 / r671127;
        return r671128;
}

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