Average Error: 0.2 → 0.2
Time: 12.2s
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 r11963201 = x;
        double r11963202 = 3.0;
        double r11963203 = r11963201 * r11963202;
        double r11963204 = r11963203 * r11963201;
        return r11963204;
}

double f(double x) {
        double r11963205 = x;
        double r11963206 = 3.0;
        double r11963207 = r11963205 * r11963206;
        double r11963208 = r11963205 * r11963207;
        return r11963208;
}

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 2019164 
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))