Average Error: 0.1 → 0.1
Time: 2.5s
Precision: binary64
\[\left(\left(\left(\left(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}\]
\[\left(\left(\left(\left(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}\]
\left(\left(\left(\left(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}
\left(\left(\left(\left(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (((double) (5.25355 + ((double) (9.82419 * x)))) + ((double) (6.27637 * ((double) pow(x, 2.0)))))) + ((double) (9.42688 * ((double) pow(x, 3.0)))))) + ((double) (5.51478 * ((double) pow(x, 4.0)))))) + ((double) (1.08104 * ((double) pow(x, 5.0)))))) + ((double) (0.554273 * ((double) pow(x, 6.0))))));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (((double) (5.25355 + ((double) (9.82419 * x)))) + ((double) (6.27637 * ((double) pow(x, 2.0)))))) + ((double) (9.42688 * ((double) pow(x, 3.0)))))) + ((double) (5.51478 * ((double) pow(x, 4.0)))))) + ((double) (1.08104 * ((double) pow(x, 5.0)))))) + ((double) (0.554273 * ((double) pow(x, 6.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(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}\]
  2. Final simplification0.1

    \[\leadsto \left(\left(\left(\left(\left(5.25354999999999972 + 9.82418999999999976 \cdot x\right) + 6.27637 \cdot {x}^{2}\right) + 9.4268800000000006 \cdot {x}^{3}\right) + 5.51478 \cdot {x}^{4}\right) + 1.08104 \cdot {x}^{5}\right) + 0.55427300000000002 \cdot {x}^{6}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (+ (+ (+ (+ (+ 5.25355 (* 9.82419 x)) (* 6.27637 (pow x 2))) (* 9.42688 (pow x 3))) (* 5.51478 (pow x 4))) (* 1.08104 (pow x 5))) (* 0.554273 (pow x 6)))"
  :precision binary64
  (+ (+ (+ (+ (+ (+ 5.25355 (* 9.82419 x)) (* 6.27637 (pow x 2.0))) (* 9.42688 (pow x 3.0))) (* 5.51478 (pow x 4.0))) (* 1.08104 (pow x 5.0))) (* 0.554273 (pow x 6.0))))