Average Error: 0 → 0
Time: 606.0ms
Precision: binary64
\[\]
\[\]
double code(double x) {
	return ((double) (((double) (x * 2.0)) * x));
}
double code(double x) {
	return ((double) (x * ((double) (x * 2.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0
Target0
Herbie0
\[\]

Derivation

  1. Initial program 0

    \[\]
  2. Final simplification0

    \[\leadsto \]

Reproduce

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

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

  (* (* x 2.0) x))