Average Error: 0.2 → 0.2
Time: 9.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 r11458696 = x;
        double r11458697 = 3.0;
        double r11458698 = r11458696 * r11458697;
        double r11458699 = r11458698 * r11458696;
        return r11458699;
}

double f(double x) {
        double r11458700 = x;
        double r11458701 = 3.0;
        double r11458702 = r11458700 * r11458701;
        double r11458703 = r11458700 * r11458702;
        return r11458703;
}

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