Average Error: 0.3 → 0.3
Time: 7.9s
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 r492670 = x;
        double r492671 = 3.0;
        double r492672 = r492670 * r492671;
        double r492673 = y;
        double r492674 = r492672 * r492673;
        double r492675 = r492674 * r492673;
        return r492675;
}

double f(double x, double y) {
        double r492676 = x;
        double r492677 = 3.0;
        double r492678 = r492676 * r492677;
        double r492679 = y;
        double r492680 = r492678 * r492679;
        double r492681 = r492680 * r492679;
        return r492681;
}

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
\[\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 2019297 
(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))