Average Error: 0.2 → 0.2
Time: 24.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 r18970700 = x;
        double r18970701 = 3.0;
        double r18970702 = r18970700 * r18970701;
        double r18970703 = r18970702 * r18970700;
        return r18970703;
}

double f(double x) {
        double r18970704 = x;
        double r18970705 = 3.0;
        double r18970706 = r18970704 * r18970705;
        double r18970707 = r18970704 * r18970706;
        return r18970707;
}

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