Average Error: 13.2 → 13.2
Time: 1.0s
Precision: binary64
\[\left|{x}^{3}\right| - {x}^{3}\]
\[\left|{x}^{3}\right| - {x}^{3}\]
\left|{x}^{3}\right| - {x}^{3}
\left|{x}^{3}\right| - {x}^{3}
double code(double x) {
	return ((double) (((double) fabs(((double) pow(x, 3.0)))) - ((double) pow(x, 3.0))));
}
double code(double x) {
	return ((double) (((double) fabs(((double) pow(x, 3.0)))) - ((double) pow(x, 3.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 13.2

    \[\left|{x}^{3}\right| - {x}^{3}\]
  2. Final simplification13.2

    \[\leadsto \left|{x}^{3}\right| - {x}^{3}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(- (fabs (pow x 3)) (pow x 3))"
  :precision binary64
  (- (fabs (pow x 3.0)) (pow x 3.0)))