Average Error: 0.2 → 0.2
Time: 25.9s
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 r11216741 = x;
        double r11216742 = 3.0;
        double r11216743 = r11216741 * r11216742;
        double r11216744 = r11216743 * r11216741;
        return r11216744;
}

double f(double x) {
        double r11216745 = x;
        double r11216746 = 3.0;
        double r11216747 = r11216745 * r11216746;
        double r11216748 = r11216745 * r11216747;
        return r11216748;
}

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