Average Error: 0.3 → 0.3
Time: 2.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 r782039 = x;
        double r782040 = y;
        double r782041 = 3.0;
        double r782042 = r782040 * r782041;
        double r782043 = r782039 / r782042;
        return r782043;
}

double f(double x, double y) {
        double r782044 = x;
        double r782045 = y;
        double r782046 = 3.0;
        double r782047 = r782045 * r782046;
        double r782048 = r782044 / r782047;
        return r782048;
}

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

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

  (/ x (* y 3)))