Average Error: 0.2 → 0.2
Time: 11.8s
Precision: 64
\[\left(x \cdot 3.0\right) \cdot x\]
\[x \cdot \left(x \cdot 3.0\right)\]
\left(x \cdot 3.0\right) \cdot x
x \cdot \left(x \cdot 3.0\right)
double f(double x) {
        double r11847945 = x;
        double r11847946 = 3.0;
        double r11847947 = r11847945 * r11847946;
        double r11847948 = r11847947 * r11847945;
        return r11847948;
}

double f(double x) {
        double r11847949 = x;
        double r11847950 = 3.0;
        double r11847951 = r11847949 * r11847950;
        double r11847952 = r11847949 * r11847951;
        return r11847952;
}

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.0\right) \cdot x\]
  2. Final simplification0.2

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

Reproduce

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