Average Error: 0.0 → 0.0
Time: 975.0ms
Precision: binary64
\[\left(8 \cdot a + b \cdot b\right) - 4 \cdot c\]
\[\left(8 \cdot a + b \cdot b\right) - 4 \cdot c\]
\left(8 \cdot a + b \cdot b\right) - 4 \cdot c
\left(8 \cdot a + b \cdot b\right) - 4 \cdot c
double code(double a, double b, double c) {
	return ((double) (((double) (((double) (8.0 * a)) + ((double) (b * b)))) - ((double) (4.0 * c))));
}
double code(double a, double b, double c) {
	return ((double) (((double) (((double) (8.0 * a)) + ((double) (b * b)))) - ((double) (4.0 * c))));
}

Error

Bits error versus a

Bits error versus b

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(8 \cdot a + b \cdot b\right) - 4 \cdot c\]
  2. Final simplification0.0

    \[\leadsto \left(8 \cdot a + b \cdot b\right) - 4 \cdot c\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a b c)
  :name "(- (+ (* 8 a) (* b b)) (* 4 c))"
  :precision binary64
  (- (+ (* 8.0 a) (* b b)) (* 4.0 c)))