Average Error: 0.2 → 0.2
Time: 33.3s
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 r6697169 = x;
        double r6697170 = 3.0;
        double r6697171 = r6697169 * r6697170;
        double r6697172 = r6697171 * r6697169;
        return r6697172;
}

double f(double x) {
        double r6697173 = x;
        double r6697174 = 3.0;
        double r6697175 = r6697173 * r6697174;
        double r6697176 = r6697173 * r6697175;
        return r6697176;
}

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