Average Error: 0.3 → 0.3
Time: 8.2s
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 r498023 = x;
        double r498024 = y;
        double r498025 = 3.0;
        double r498026 = r498024 * r498025;
        double r498027 = r498023 / r498026;
        return r498027;
}

double f(double x, double y) {
        double r498028 = x;
        double r498029 = y;
        double r498030 = 3.0;
        double r498031 = r498029 * r498030;
        double r498032 = r498028 / r498031;
        return r498032;
}

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

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

  (/ x (* y 3)))