Average Error: 0.3 → 0.3
Time: 3.3s
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 r879381 = x;
        double r879382 = 3.0;
        double r879383 = r879381 * r879382;
        double r879384 = y;
        double r879385 = r879383 * r879384;
        double r879386 = r879385 * r879384;
        return r879386;
}

double f(double x, double y) {
        double r879387 = x;
        double r879388 = 3.0;
        double r879389 = r879387 * r879388;
        double r879390 = y;
        double r879391 = r879389 * r879390;
        double r879392 = r879391 * r879390;
        return r879392;
}

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