Average Error: 0.2 → 0.2
Time: 31.7s
Precision: 64
\[\left(x \cdot 3\right) \cdot x\]
\[x \cdot \left(3 \cdot x\right)\]
\left(x \cdot 3\right) \cdot x
x \cdot \left(3 \cdot x\right)
double f(double x) {
        double r11592938 = x;
        double r11592939 = 3.0;
        double r11592940 = r11592938 * r11592939;
        double r11592941 = r11592940 * r11592938;
        return r11592941;
}

double f(double x) {
        double r11592942 = x;
        double r11592943 = 3.0;
        double r11592944 = r11592943 * r11592942;
        double r11592945 = r11592942 * r11592944;
        return r11592945;
}

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(3 \cdot x\right)\]

Reproduce

herbie shell --seed 2019200 +o rules:numerics
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  (* (* x 3.0) x))