Average Error: 0.2 → 0.2
Time: 12.2s
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 r10741342 = x;
        double r10741343 = 3.0;
        double r10741344 = r10741342 * r10741343;
        double r10741345 = r10741344 * r10741342;
        return r10741345;
}

double f(double x) {
        double r10741346 = x;
        double r10741347 = 3.0;
        double r10741348 = r10741346 * r10741347;
        double r10741349 = r10741346 * r10741348;
        return r10741349;
}

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