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 r9604561 = x;
        double r9604562 = 3.0;
        double r9604563 = r9604561 * r9604562;
        double r9604564 = r9604563 * r9604561;
        return r9604564;
}

double f(double x) {
        double r9604565 = x;
        double r9604566 = 3.0;
        double r9604567 = r9604565 * r9604566;
        double r9604568 = r9604565 * r9604567;
        return r9604568;
}

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