Average Error: 0.0 → 0.0
Time: 682.0ms
Precision: binary64
\[b \cdot b - 4 \cdot ac\]
\[b \cdot b - 4 \cdot ac\]
b \cdot b - 4 \cdot ac
b \cdot b - 4 \cdot ac
double code(double b, double ac) {
	return ((double) (((double) (b * b)) - ((double) (4.0 * ac))));
}
double code(double b, double ac) {
	return ((double) (((double) (b * b)) - ((double) (4.0 * ac))));
}

Error

Bits error versus b

Bits error versus ac

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[b \cdot b - 4 \cdot ac\]
  2. Final simplification0.0

    \[\leadsto b \cdot b - 4 \cdot ac\]

Reproduce

herbie shell --seed 2020153 
(FPCore (b ac)
  :name "(- (* b b) (* 4 ac))"
  :precision binary64
  (- (* b b) (* 4.0 ac)))