Average Error: 0.2 → 0.2
Time: 8.2s
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 r8829608 = x;
        double r8829609 = 3.0;
        double r8829610 = r8829608 * r8829609;
        double r8829611 = r8829610 * r8829608;
        return r8829611;
}

double f(double x) {
        double r8829612 = x;
        double r8829613 = 3.0;
        double r8829614 = r8829612 * r8829613;
        double r8829615 = r8829612 * r8829614;
        return r8829615;
}

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