Average Error: 0.2 → 0.2
Time: 16.7s
Precision: 64
\[\left(x \cdot 3\right) \cdot x\]
\[\left(x \cdot 3\right) \cdot x\]
\left(x \cdot 3\right) \cdot x
\left(x \cdot 3\right) \cdot x
double f(double x) {
        double r20237874 = x;
        double r20237875 = 3.0;
        double r20237876 = r20237874 * r20237875;
        double r20237877 = r20237876 * r20237874;
        return r20237877;
}

double f(double x) {
        double r20237878 = x;
        double r20237879 = 3.0;
        double r20237880 = r20237878 * r20237879;
        double r20237881 = r20237880 * r20237878;
        return r20237881;
}

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

Reproduce

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