Average Error: 0.2 → 0.2
Time: 5.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 r4361161 = x;
        double r4361162 = 3.0;
        double r4361163 = r4361161 * r4361162;
        double r4361164 = r4361163 * r4361161;
        return r4361164;
}

double f(double x) {
        double r4361165 = x;
        double r4361166 = 3.0;
        double r4361167 = r4361165 * r4361166;
        double r4361168 = r4361165 * r4361167;
        return r4361168;
}

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