Average Error: 0.2 → 0.2
Time: 5.6s
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 r368273 = x;
        double r368274 = 3.0;
        double r368275 = r368273 * r368274;
        double r368276 = r368275 * r368273;
        return r368276;
}

double f(double x) {
        double r368277 = x;
        double r368278 = 3.0;
        double r368279 = r368277 * r368278;
        double r368280 = r368277 * r368279;
        return r368280;
}

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