Average Error: 0.3 → 0.3
Time: 1.6s
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 r716110 = x;
        double r716111 = y;
        double r716112 = 3.0;
        double r716113 = r716111 * r716112;
        double r716114 = r716110 / r716113;
        return r716114;
}

double f(double x, double y) {
        double r716115 = x;
        double r716116 = y;
        double r716117 = 3.0;
        double r716118 = r716116 * r716117;
        double r716119 = r716115 / r716118;
        return r716119;
}

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.2
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 2020064 +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)))