Average Error: 0 → 0
Time: 4.2s
Precision: 64
\[\left(x \cdot 0.5\right) \cdot x\]
\[x \cdot \left(0.5 \cdot x\right)\]
\left(x \cdot 0.5\right) \cdot x
x \cdot \left(0.5 \cdot x\right)
double f(double x) {
        double r8177 = x;
        double r8178 = 0.5;
        double r8179 = r8177 * r8178;
        double r8180 = r8179 * r8177;
        return r8180;
}

double f(double x) {
        double r8181 = x;
        double r8182 = 0.5;
        double r8183 = r8182 * r8181;
        double r8184 = r8181 * r8183;
        return r8184;
}

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. Final simplification0

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

Reproduce

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