Average Error: 0.2 → 0.2
Time: 15.7s
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 r6847911 = x;
        double r6847912 = 3.0;
        double r6847913 = r6847911 * r6847912;
        double r6847914 = r6847913 * r6847911;
        return r6847914;
}

double f(double x) {
        double r6847915 = x;
        double r6847916 = 3.0;
        double r6847917 = r6847915 * r6847916;
        double r6847918 = r6847915 * r6847917;
        return r6847918;
}

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