Average Error: 0.3 → 0.3
Time: 20.4s
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 r469993 = x;
        double r469994 = 3.0;
        double r469995 = r469993 * r469994;
        double r469996 = y;
        double r469997 = r469995 * r469996;
        double r469998 = r469997 * r469996;
        return r469998;
}

double f(double x, double y) {
        double r469999 = x;
        double r470000 = 3.0;
        double r470001 = r469999 * r470000;
        double r470002 = y;
        double r470003 = r470001 * r470002;
        double r470004 = r470003 * r470002;
        return r470004;
}

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 2019323 
(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))