Average Error: 0.2 → 0.2
Time: 16.6s
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 r9260557 = x;
        double r9260558 = 3.0;
        double r9260559 = r9260557 * r9260558;
        double r9260560 = r9260559 * r9260557;
        return r9260560;
}

double f(double x) {
        double r9260561 = x;
        double r9260562 = 3.0;
        double r9260563 = r9260561 * r9260562;
        double r9260564 = r9260561 * r9260563;
        return r9260564;
}

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