Average Error: 0.2 → 0.2
Time: 6.9s
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 r150580 = x;
        double r150581 = 3.0;
        double r150582 = r150580 * r150581;
        double r150583 = r150582 * r150580;
        return r150583;
}

double f(double x) {
        double r150584 = x;
        double r150585 = 3.0;
        double r150586 = r150584 * r150585;
        double r150587 = r150584 * r150586;
        return r150587;
}

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