Average Error: 0.1 → 0
Time: 795.0ms
Precision: binary64
\[\]
\[\]
double code(double x) {
	return ((double) (((double) (x * x)) * x));
}
double code(double x) {
	return ((double) pow(x, 3.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0
\[\]

Derivation

  1. Initial program 0.1

    \[\]
  2. Simplified0

    \[\leadsto \]
  3. Final simplification0

    \[\leadsto \]

Reproduce

herbie shell --seed 2020191 
(FPCore (x)
  :name "math.cube on real"
  :precision binary64

  :herbie-target
  (pow x 3.0)

  (* (* x x) x))