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

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

Reproduce

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