Average Error: 0 → 0
Time: 2.2s
Precision: 64
\[\left(x \cdot 16.0\right) \cdot x\]
\[x \cdot \left(x \cdot 16.0\right)\]
\left(x \cdot 16.0\right) \cdot x
x \cdot \left(x \cdot 16.0\right)
double f(double x) {
        double r10309379 = x;
        double r10309380 = 16.0;
        double r10309381 = r10309379 * r10309380;
        double r10309382 = r10309381 * r10309379;
        return r10309382;
}

double f(double x) {
        double r10309383 = x;
        double r10309384 = 16.0;
        double r10309385 = r10309383 * r10309384;
        double r10309386 = r10309383 * r10309385;
        return r10309386;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\left(x \cdot 16.0\right) \cdot x\]
  2. Final simplification0

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

Reproduce

herbie shell --seed 2019165 +o rules:numerics
(FPCore (x)
  :name "Graphics.Rasterific.CubicBezier:isSufficientlyFlat from Rasterific-0.6.1"
  (* (* x 16.0) x))