Average Error: 0.2 → 0.2
Time: 11.8s
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 r12589308 = x;
        double r12589309 = 3.0;
        double r12589310 = r12589308 * r12589309;
        double r12589311 = r12589310 * r12589308;
        return r12589311;
}

double f(double x) {
        double r12589312 = x;
        double r12589313 = 3.0;
        double r12589314 = r12589312 * r12589313;
        double r12589315 = r12589312 * r12589314;
        return r12589315;
}

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