Average Error: 0.2 → 0.2
Time: 11.6s
Precision: 64
\[\left(x \cdot 3.0\right) \cdot x\]
\[x \cdot \left(x \cdot 3.0\right)\]
\left(x \cdot 3.0\right) \cdot x
x \cdot \left(x \cdot 3.0\right)
double f(double x) {
        double r7556269 = x;
        double r7556270 = 3.0;
        double r7556271 = r7556269 * r7556270;
        double r7556272 = r7556271 * r7556269;
        return r7556272;
}

double f(double x) {
        double r7556273 = x;
        double r7556274 = 3.0;
        double r7556275 = r7556273 * r7556274;
        double r7556276 = r7556273 * r7556275;
        return r7556276;
}

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

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

Reproduce

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