Average Error: 0 → 0
Time: 640.0ms
Precision: 64
\[\left(x \cdot 2\right) \cdot x\]
\[\left(x \cdot 2\right) \cdot x\]
\left(x \cdot 2\right) \cdot x
\left(x \cdot 2\right) \cdot x
double f(double x) {
        double r520564 = x;
        double r520565 = 2.0;
        double r520566 = r520564 * r520565;
        double r520567 = r520566 * r520564;
        return r520567;
}

double f(double x) {
        double r520568 = x;
        double r520569 = 2.0;
        double r520570 = r520568 * r520569;
        double r520571 = r520570 * r520568;
        return r520571;
}

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 \left(x \cdot 2\right) \cdot x\]

Reproduce

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

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

  (* (* x 2) x))