Average Error: 0.2 → 0.2
Time: 11.8s
Precision: 64
\[\left(x \cdot 3\right) \cdot x\]
\[x \cdot \left(x \cdot 3\right)\]
\left(x \cdot 3\right) \cdot x
x \cdot \left(x \cdot 3\right)
double f(double x) {
        double r11125928 = x;
        double r11125929 = 3.0;
        double r11125930 = r11125928 * r11125929;
        double r11125931 = r11125930 * r11125928;
        return r11125931;
}

double f(double x) {
        double r11125932 = x;
        double r11125933 = 3.0;
        double r11125934 = r11125932 * r11125933;
        double r11125935 = r11125932 * r11125934;
        return r11125935;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\left(x \cdot 3\right) \cdot x\]
  2. Final simplification0.2

    \[\leadsto x \cdot \left(x \cdot 3\right)\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))