Average Error: 0.1 → 0.1
Time: 1.4s
Precision: binary64
\[\left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2\]
\[\left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2\]
\left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2
\left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2
double code(double x) {
	return ((double) (((double) (((double) (((double) (15.0 * ((double) pow(x, 3.0)))) + ((double) (2.1 * ((double) pow(x, 2.0)))))) - ((double) (3.56 * x)))) + 2.0));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (15.0 * ((double) pow(x, 3.0)))) + ((double) (2.1 * ((double) pow(x, 2.0)))))) - ((double) (3.56 * x)))) + 2.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.1

    \[\left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2\]
  2. Final simplification0.1

    \[\leadsto \left(\left(15 \cdot {x}^{3} + 2.10000000000000009 \cdot {x}^{2}\right) - 3.56000000000000005 \cdot x\right) + 2\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (- (+ (* 15.0 (pow x 3)) (* 2.1 (pow x 2))) (* 3.56 x)) 2.0)"
  :precision binary64
  (+ (- (+ (* 15.0 (pow x 3.0)) (* 2.1 (pow x 2.0))) (* 3.56 x)) 2.0))