Average Error: 0.2 → 0.2
Time: 26.9s
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 r10361183 = x;
        double r10361184 = 3.0;
        double r10361185 = r10361183 * r10361184;
        double r10361186 = r10361185 * r10361183;
        return r10361186;
}

double f(double x) {
        double r10361187 = x;
        double r10361188 = 3.0;
        double r10361189 = r10361187 * r10361188;
        double r10361190 = r10361187 * r10361189;
        return r10361190;
}

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