Average Error: 0.3 → 0.3
Time: 14.8s
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 r524414 = x;
        double r524415 = 3.0;
        double r524416 = r524414 * r524415;
        double r524417 = y;
        double r524418 = r524416 * r524417;
        double r524419 = r524418 * r524417;
        return r524419;
}

double f(double x, double y) {
        double r524420 = x;
        double r524421 = 3.0;
        double r524422 = r524420 * r524421;
        double r524423 = y;
        double r524424 = r524422 * r524423;
        double r524425 = r524424 * r524423;
        return r524425;
}

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 2019199 
(FPCore (x y)
  :name "Diagrams.Segment:$catParam from diagrams-lib-1.3.0.3, B"

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

  (* (* (* x 3.0) y) y))