Average Error: 0.1 → 0.1
Time: 380.0ms
Precision: binary64
Cost: 320
\[\left(x \cdot x\right) \cdot x\]
\[\left(x \cdot x\right) \cdot x\]
\left(x \cdot x\right) \cdot x
\left(x \cdot x\right) \cdot x
(FPCore (x) :precision binary64 (* (* x x) x))
(FPCore (x) :precision binary64 (* (* x x) x))
double code(double x) {
	return (x * x) * x;
}
double code(double x) {
	return (x * x) * x;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0.1
\[{x}^{3}\]

Derivation

  1. Initial program 0.1

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

Reproduce

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

  :herbie-target
  (pow x 3.0)

  (* (* x x) x))