Average Error: 0.3 → 0.3
Time: 8.7s
Precision: 64
\[\left(\left(x \cdot 3\right) \cdot y\right) \cdot y\]
\[y \cdot \left(\left(x \cdot 3\right) \cdot y\right)\]
\left(\left(x \cdot 3\right) \cdot y\right) \cdot y
y \cdot \left(\left(x \cdot 3\right) \cdot y\right)
double f(double x, double y) {
        double r611084 = x;
        double r611085 = 3.0;
        double r611086 = r611084 * r611085;
        double r611087 = y;
        double r611088 = r611086 * r611087;
        double r611089 = r611088 * r611087;
        return r611089;
}

double f(double x, double y) {
        double r611090 = y;
        double r611091 = x;
        double r611092 = 3.0;
        double r611093 = r611091 * r611092;
        double r611094 = r611093 * r611090;
        double r611095 = r611090 * r611094;
        return r611095;
}

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

Reproduce

herbie shell --seed 2019194 
(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))