Average Error: 0.2 → 0.2
Time: 9.9s
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 r224810 = x;
        double r224811 = 3.0;
        double r224812 = r224810 * r224811;
        double r224813 = r224812 * r224810;
        return r224813;
}

double f(double x) {
        double r224814 = x;
        double r224815 = 3.0;
        double r224816 = r224814 * r224815;
        double r224817 = r224816 * r224814;
        return r224817;
}

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