Average Error: 0 → 0
Time: 986.0ms
Precision: 64
\[\left(x \cdot 0.5\right) \cdot x\]
\[\left(x \cdot \frac{1}{2}\right) \cdot x\]
\left(x \cdot 0.5\right) \cdot x
\left(x \cdot \frac{1}{2}\right) \cdot x
double f(double x) {
        double r8334 = x;
        double r8335 = 0.5;
        double r8336 = r8334 * r8335;
        double r8337 = r8336 * r8334;
        return r8337;
}

double f(double x) {
        double r8338 = x;
        double r8339 = 1.0;
        double r8340 = 2.0;
        double r8341 = r8339 / r8340;
        double r8342 = r8338 * r8341;
        double r8343 = r8342 * r8338;
        return r8343;
}

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 0.5\right) \cdot x\]
  2. Simplified0

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

    \[\leadsto \left(x \cdot \frac{1}{2}\right) \cdot x\]

Reproduce

herbie shell --seed 2019303 
(FPCore (x)
  :name "System.Random.MWC.Distributions:blocks from mwc-random-0.13.3.2"
  :precision binary64
  (* (* x 0.5) x))