Average Error: 0.1 → 0.1
Time: 2.2s
Precision: binary64
\[\left(\left(\left(\left(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}\]
\[\left(\left(\left(\left(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}\]
\left(\left(\left(\left(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}
\left(\left(\left(\left(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (4.81679 + ((double) (7.32675 * x)))) + ((double) (4.67706 * ((double) pow(x, 2.0)))))) + ((double) (1.93379 * ((double) pow(x, 3.0)))))) + ((double) (7.55295 * ((double) pow(x, 4.0)))))) + ((double) (0.463676 * ((double) pow(x, 5.0))))));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (4.81679 + ((double) (7.32675 * x)))) + ((double) (4.67706 * ((double) pow(x, 2.0)))))) + ((double) (1.93379 * ((double) pow(x, 3.0)))))) + ((double) (7.55295 * ((double) pow(x, 4.0)))))) + ((double) (0.463676 * ((double) pow(x, 5.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(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}\]
  2. Final simplification0.1

    \[\leadsto \left(\left(\left(\left(4.81679000000000013 + 7.32674999999999965 \cdot x\right) + 4.67706 \cdot {x}^{2}\right) + 1.9337899999999999 \cdot {x}^{3}\right) + 7.55295000000000005 \cdot {x}^{4}\right) + 0.46367599999999998 \cdot {x}^{5}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (+ (+ (+ (+ 4.81679 (* 7.32675 x)) (* 4.67706 (pow x 2))) (* 1.93379 (pow x 3))) (* 7.55295 (pow x 4))) (* 0.463676 (pow x 5)))"
  :precision binary64
  (+ (+ (+ (+ (+ 4.81679 (* 7.32675 x)) (* 4.67706 (pow x 2.0))) (* 1.93379 (pow x 3.0))) (* 7.55295 (pow x 4.0))) (* 0.463676 (pow x 5.0))))