Average Error: 0.2 → 0.2
Time: 11.4s
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 r9305163 = x;
        double r9305164 = 3.0;
        double r9305165 = r9305163 * r9305164;
        double r9305166 = r9305165 * r9305163;
        return r9305166;
}

double f(double x) {
        double r9305167 = x;
        double r9305168 = 3.0;
        double r9305169 = r9305167 * r9305168;
        double r9305170 = r9305167 * r9305169;
        return r9305170;
}

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