Average Error: 0.2 → 0.2
Time: 28.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 r6244423 = x;
        double r6244424 = 3.0;
        double r6244425 = r6244423 * r6244424;
        double r6244426 = r6244425 * r6244423;
        return r6244426;
}

double f(double x) {
        double r6244427 = x;
        double r6244428 = 3.0;
        double r6244429 = r6244427 * r6244428;
        double r6244430 = r6244427 * r6244429;
        return r6244430;
}

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