Average Error: 0.2 → 0.2
Time: 14.0s
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 r10311719 = x;
        double r10311720 = 3.0;
        double r10311721 = r10311719 * r10311720;
        double r10311722 = r10311721 * r10311719;
        return r10311722;
}

double f(double x) {
        double r10311723 = x;
        double r10311724 = 3.0;
        double r10311725 = r10311723 * r10311724;
        double r10311726 = r10311723 * r10311725;
        return r10311726;
}

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