Average Error: 0.2 → 0.2
Time: 8.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 r7274448 = x;
        double r7274449 = 3.0;
        double r7274450 = r7274448 * r7274449;
        double r7274451 = r7274450 * r7274448;
        return r7274451;
}

double f(double x) {
        double r7274452 = x;
        double r7274453 = 3.0;
        double r7274454 = r7274452 * r7274453;
        double r7274455 = r7274452 * r7274454;
        return r7274455;
}

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