Average Error: 0.3 → 0.3
Time: 1.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 r657063 = x;
        double r657064 = y;
        double r657065 = 3.0;
        double r657066 = r657064 * r657065;
        double r657067 = r657063 / r657066;
        return r657067;
}

double f(double x, double y) {
        double r657068 = x;
        double r657069 = y;
        double r657070 = 3.0;
        double r657071 = r657069 * r657070;
        double r657072 = r657068 / r657071;
        return r657072;
}

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

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

  (/ x (* y 3)))