Average Error: 0.3 → 0.3
Time: 2.6s
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 r883583 = x;
        double r883584 = 3.0;
        double r883585 = r883583 * r883584;
        double r883586 = y;
        double r883587 = r883585 * r883586;
        double r883588 = r883587 * r883586;
        return r883588;
}

double f(double x, double y) {
        double r883589 = x;
        double r883590 = 3.0;
        double r883591 = r883589 * r883590;
        double r883592 = y;
        double r883593 = r883591 * r883592;
        double r883594 = r883593 * r883592;
        return r883594;
}

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