Average Error: 0.2 → 0.2
Time: 11.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 r9869273 = x;
        double r9869274 = 3.0;
        double r9869275 = r9869273 * r9869274;
        double r9869276 = r9869275 * r9869273;
        return r9869276;
}

double f(double x) {
        double r9869277 = x;
        double r9869278 = 3.0;
        double r9869279 = r9869277 * r9869278;
        double r9869280 = r9869277 * r9869279;
        return r9869280;
}

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