Average Error: 0.2 → 0.2
Time: 7.6s
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 r6886188 = x;
        double r6886189 = 3.0;
        double r6886190 = r6886188 * r6886189;
        double r6886191 = r6886190 * r6886188;
        return r6886191;
}

double f(double x) {
        double r6886192 = x;
        double r6886193 = 3.0;
        double r6886194 = r6886192 * r6886193;
        double r6886195 = r6886192 * r6886194;
        return r6886195;
}

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