Average Error: 0.3 → 0.3
Time: 17.5s
Precision: 64
\[\left(\left(x \cdot 3\right) \cdot y\right) \cdot y\]
\[\left(\left(x \cdot 3\right) \cdot y\right) \cdot y\]
\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
double f(double x, double y) {
        double r793732 = x;
        double r793733 = 3.0;
        double r793734 = r793732 * r793733;
        double r793735 = y;
        double r793736 = r793734 * r793735;
        double r793737 = r793736 * r793735;
        return r793737;
}

double f(double x, double y) {
        double r793738 = x;
        double r793739 = 3.0;
        double r793740 = r793738 * r793739;
        double r793741 = y;
        double r793742 = r793740 * r793741;
        double r793743 = r793742 * r793741;
        return r793743;
}

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
\[\left(x \cdot \left(3 \cdot y\right)\right) \cdot y\]

Derivation

  1. Initial program 0.3

    \[\left(\left(x \cdot 3\right) \cdot y\right) \cdot y\]
  2. Final simplification0.3

    \[\leadsto \left(\left(x \cdot 3\right) \cdot y\right) \cdot y\]

Reproduce

herbie shell --seed 2020047 
(FPCore (x y)
  :name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"
  :precision binary64

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

  (* (* (* x 3) y) y))