Average Error: 0.2 → 0.2
Time: 6.1s
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 r201041 = x;
        double r201042 = 3.0;
        double r201043 = r201041 * r201042;
        double r201044 = r201043 * r201041;
        return r201044;
}

double f(double x) {
        double r201045 = x;
        double r201046 = 3.0;
        double r201047 = r201045 * r201046;
        double r201048 = r201045 * r201047;
        return r201048;
}

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