Average Error: 0 → 0
Time: 886.0ms
Precision: 64
\[\left(x \cdot 2\right) \cdot x\]
\[x \cdot \left(x \cdot 2\right)\]
\left(x \cdot 2\right) \cdot x
x \cdot \left(x \cdot 2\right)
double f(double x) {
        double r18749890 = x;
        double r18749891 = 2.0;
        double r18749892 = r18749890 * r18749891;
        double r18749893 = r18749892 * r18749890;
        return r18749893;
}

double f(double x) {
        double r18749894 = x;
        double r18749895 = 2.0;
        double r18749896 = r18749894 * r18749895;
        double r18749897 = r18749894 * r18749896;
        return r18749897;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0
Target0
Herbie0
\[\left(2 \cdot x\right) \cdot x\]

Derivation

  1. Initial program 0

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

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

Reproduce

herbie shell --seed 2019169 
(FPCore (x)
  :name "Numeric.Log:$cexpm1 from log-domain-0.10.2.1, A"

  :herbie-target
  (* (* 2.0 x) x)

  (* (* x 2.0) x))