Average Error: 0.2 → 0.2
Time: 7.2s
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 r8271457 = x;
        double r8271458 = 3.0;
        double r8271459 = r8271457 * r8271458;
        double r8271460 = r8271459 * r8271457;
        return r8271460;
}

double f(double x) {
        double r8271461 = x;
        double r8271462 = 3.0;
        double r8271463 = r8271461 * r8271462;
        double r8271464 = r8271461 * r8271463;
        return r8271464;
}

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