Average Error: 0.2 → 0.2
Time: 6.1s
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 r10338383 = x;
        double r10338384 = 3.0;
        double r10338385 = r10338383 * r10338384;
        double r10338386 = r10338385 * r10338383;
        return r10338386;
}

double f(double x) {
        double r10338387 = x;
        double r10338388 = 3.0;
        double r10338389 = r10338387 * r10338388;
        double r10338390 = r10338387 * r10338389;
        return r10338390;
}

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