Average Error: 0.2 → 0.2
Time: 12.2s
Precision: 64
\[\left(x \cdot 3.0\right) \cdot x\]
\[x \cdot \left(x \cdot 3.0\right)\]
\left(x \cdot 3.0\right) \cdot x
x \cdot \left(x \cdot 3.0\right)
double f(double x) {
        double r9388536 = x;
        double r9388537 = 3.0;
        double r9388538 = r9388536 * r9388537;
        double r9388539 = r9388538 * r9388536;
        return r9388539;
}

double f(double x) {
        double r9388540 = x;
        double r9388541 = 3.0;
        double r9388542 = r9388540 * r9388541;
        double r9388543 = r9388540 * r9388542;
        return r9388543;
}

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.0\right) \cdot x\]
  2. Final simplification0.2

    \[\leadsto x \cdot \left(x \cdot 3.0\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))