Average Error: 0.2 → 0.2
Time: 12.5s
Precision: 64
\[\left(x \cdot 3.0\right) \cdot x\]
\[x \cdot \left(x \cdot 3.0\right)\]
\left(x \cdot 3.0\right) \cdot x
x \cdot \left(x \cdot 3.0\right)
double f(double x) {
        double r10353515 = x;
        double r10353516 = 3.0;
        double r10353517 = r10353515 * r10353516;
        double r10353518 = r10353517 * r10353515;
        return r10353518;
}

double f(double x) {
        double r10353519 = x;
        double r10353520 = 3.0;
        double r10353521 = r10353519 * r10353520;
        double r10353522 = r10353519 * r10353521;
        return r10353522;
}

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.0\right) \cdot x\]
  2. Final simplification0.2

    \[\leadsto x \cdot \left(x \cdot 3.0\right)\]

Reproduce

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