Average Error: 0.2 → 0.2
Time: 11.3s
Precision: 64
\[\left(x \cdot 3\right) \cdot x\]
\[x \cdot \left(x \cdot 3\right)\]
\left(x \cdot 3\right) \cdot x
x \cdot \left(x \cdot 3\right)
double f(double x) {
        double r9873347 = x;
        double r9873348 = 3.0;
        double r9873349 = r9873347 * r9873348;
        double r9873350 = r9873349 * r9873347;
        return r9873350;
}

double f(double x) {
        double r9873351 = x;
        double r9873352 = 3.0;
        double r9873353 = r9873351 * r9873352;
        double r9873354 = r9873351 * r9873353;
        return r9873354;
}

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\right) \cdot x\]
  2. Final simplification0.2

    \[\leadsto x \cdot \left(x \cdot 3\right)\]

Reproduce

herbie shell --seed 2019171 
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))