Average Error: 0.2 → 0.2
Time: 8.1s
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 r14785549 = x;
        double r14785550 = 3.0;
        double r14785551 = r14785549 * r14785550;
        double r14785552 = r14785551 * r14785549;
        return r14785552;
}

double f(double x) {
        double r14785553 = x;
        double r14785554 = 3.0;
        double r14785555 = r14785553 * r14785554;
        double r14785556 = r14785555 * r14785553;
        return r14785556;
}

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