Average Error: 0 → 0
Time: 954.0ms
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 r8700303 = x;
        double r8700304 = 16.0;
        double r8700305 = r8700303 * r8700304;
        double r8700306 = r8700305 * r8700303;
        return r8700306;
}

double f(double x) {
        double r8700307 = x;
        double r8700308 = 16.0;
        double r8700309 = r8700307 * r8700308;
        double r8700310 = r8700307 * r8700309;
        return r8700310;
}

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 2019163 +o rules:numerics
(FPCore (x)
  :name "Graphics.Rasterific.CubicBezier:isSufficientlyFlat from Rasterific-0.6.1"
  (* (* x 16.0) x))