Average Error: 0.1 → 0.1
Time: 1.1s
Precision: binary64
\[b \cdot b - \left(4 \cdot a\right) \cdot c\]
\[b \cdot b - \left(4 \cdot a\right) \cdot c\]
b \cdot b - \left(4 \cdot a\right) \cdot c
b \cdot b - \left(4 \cdot a\right) \cdot c
double code(double b, double a, double c) {
	return ((double) (((double) (b * b)) - ((double) (((double) (4.0 * a)) * c))));
}
double code(double b, double a, double c) {
	return ((double) (((double) (b * b)) - ((double) (((double) (4.0 * a)) * c))));
}

Error

Bits error versus b

Bits error versus a

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

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

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

Reproduce

herbie shell --seed 2020152 
(FPCore (b a c)
  :name "(- (* b b) (* (* 4.0 a) c))"
  :precision binary64
  (- (* b b) (* (* 4.0 a) c)))