Average Error: 0.2 → 0.2
Time: 36.8s
Precision: 64
\[\left(x \cdot 3\right) \cdot x\]
\[x \cdot \left(3 \cdot x\right)\]
\left(x \cdot 3\right) \cdot x
x \cdot \left(3 \cdot x\right)
double f(double x) {
        double r10821283 = x;
        double r10821284 = 3.0;
        double r10821285 = r10821283 * r10821284;
        double r10821286 = r10821285 * r10821283;
        return r10821286;
}

double f(double x) {
        double r10821287 = x;
        double r10821288 = 3.0;
        double r10821289 = r10821288 * r10821287;
        double r10821290 = r10821287 * r10821289;
        return r10821290;
}

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(3 \cdot x\right)\]

Reproduce

herbie shell --seed 2019200 
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))