Average Error: 0.2 → 0.2
Time: 7.4s
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 r3239496 = x;
        double r3239497 = 3.0;
        double r3239498 = r3239496 * r3239497;
        double r3239499 = r3239498 * r3239496;
        return r3239499;
}

double f(double x) {
        double r3239500 = x;
        double r3239501 = 3.0;
        double r3239502 = r3239500 * r3239501;
        double r3239503 = r3239500 * r3239502;
        return r3239503;
}

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