Average Error: 0.3 → 0.3
Time: 17.0s
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 r139547315 = x;
        double r139547316 = 3.0;
        double r139547317 = r139547315 * r139547316;
        double r139547318 = y;
        double r139547319 = r139547317 * r139547318;
        double r139547320 = r139547319 * r139547318;
        return r139547320;
}

double f(double x, double y) {
        double r139547321 = x;
        double r139547322 = 3.0;
        double r139547323 = r139547321 * r139547322;
        double r139547324 = y;
        double r139547325 = r139547323 * r139547324;
        double r139547326 = r139547325 * r139547324;
        return r139547326;
}

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