Average Error: 0.2 → 0.2
Time: 10.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 r125210 = x;
        double r125211 = 3.0;
        double r125212 = r125210 * r125211;
        double r125213 = r125212 * r125210;
        return r125213;
}

double f(double x) {
        double r125214 = x;
        double r125215 = 3.0;
        double r125216 = r125214 * r125215;
        double r125217 = r125214 * r125216;
        return r125217;
}

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. Simplified0.2

    \[\leadsto \color{blue}{x \cdot \left(x \cdot 3\right)}\]
  3. Final simplification0.2

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

Reproduce

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