Average Error: 29.5 → 29.5
Time: 1.6s
Precision: binary64
\[\frac{c}{b + \sqrt{b \cdot b - a \cdot c}}\]
\[\frac{c}{b + \sqrt{b \cdot b - a \cdot c}}\]
\frac{c}{b + \sqrt{b \cdot b - a \cdot c}}
\frac{c}{b + \sqrt{b \cdot b - a \cdot c}}
double code(double c, double b, double a) {
	return ((double) (c / ((double) (b + ((double) sqrt(((double) (((double) (b * b)) - ((double) (a * c))))))))));
}
double code(double c, double b, double a) {
	return ((double) (c / ((double) (b + ((double) sqrt(((double) (((double) (b * b)) - ((double) (a * c))))))))));
}

Error

Bits error versus c

Bits error versus b

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.5

    \[\frac{c}{b + \sqrt{b \cdot b - a \cdot c}}\]
  2. Final simplification29.5

    \[\leadsto \frac{c}{b + \sqrt{b \cdot b - a \cdot c}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (c b a)
  :name "(/ c (+ b (sqrt (- (* b b) (* a c)))))"
  :precision binary64
  (/ c (+ b (sqrt (- (* b b) (* a c))))))