Average Error: 0.0 → 0.0
Time: 1.7s
Precision: binary64
\[\left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}\]
\[\left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}\]
\left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}
\left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}
double code(double x) {
	return ((double) (((double) (((double) (x - ((double) pow(x, 3.0)))) + ((double) pow(x, 5.0)))) - ((double) pow(x, 7.0))));
}
double code(double x) {
	return ((double) (((double) (((double) (x - ((double) pow(x, 3.0)))) + ((double) pow(x, 5.0)))) - ((double) pow(x, 7.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}\]
  2. Final simplification0.0

    \[\leadsto \left(\left(x - {x}^{3}\right) + {x}^{5}\right) - {x}^{7}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- (+ (- x (pow x 3)) (pow x 5)) (pow x 7))"
  :precision binary64
  (- (+ (- x (pow x 3.0)) (pow x 5.0)) (pow x 7.0)))