Average Error: 5.9 → 5.9
Time: 1.4s
Precision: binary64
\[\left(a \cdot {x}^{2} + bx\right) + c\]
\[\left(a \cdot {x}^{2} + bx\right) + c\]
\left(a \cdot {x}^{2} + bx\right) + c
\left(a \cdot {x}^{2} + bx\right) + c
double code(double a, double x, double bx, double c) {
	return ((double) (((double) (((double) (a * ((double) pow(x, 2.0)))) + bx)) + c));
}
double code(double a, double x, double bx, double c) {
	return ((double) (((double) (((double) (a * ((double) pow(x, 2.0)))) + bx)) + c));
}

Error

Bits error versus a

Bits error versus x

Bits error versus bx

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 5.9

    \[\left(a \cdot {x}^{2} + bx\right) + c\]
  2. Final simplification5.9

    \[\leadsto \left(a \cdot {x}^{2} + bx\right) + c\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a x bx c)
  :name "(+ (+ (* a (pow x 2)) bx) c)"
  :precision binary64
  (+ (+ (* a (pow x 2.0)) bx) c))