Average Error: 0.3 → 0.3
Time: 799.0ms
Precision: binary64
\[\frac{3 \cdot c - b \cdot b}{9}\]
\[\frac{3 \cdot c - b \cdot b}{9}\]
\frac{3 \cdot c - b \cdot b}{9}
\frac{3 \cdot c - b \cdot b}{9}
double code(double c, double b) {
	return ((double) (((double) (((double) (3.0 * c)) - ((double) (b * b)))) / 9.0));
}
double code(double c, double b) {
	return ((double) (((double) (((double) (3.0 * c)) - ((double) (b * b)))) / 9.0));
}

Error

Bits error versus c

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

    \[\frac{3 \cdot c - b \cdot b}{9}\]
  2. Final simplification0.3

    \[\leadsto \frac{3 \cdot c - b \cdot b}{9}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (c b)
  :name "(/ (- (* 3 c) (* b b)) 9)"
  :precision binary64
  (/ (- (* 3.0 c) (* b b)) 9.0))