Average Error: 7.8 → 7.8
Time: 567.0ms
Precision: binary64
\[\frac{b}{a \cdot b + 1}\]
\[\frac{b}{a \cdot b + 1}\]
\frac{b}{a \cdot b + 1}
\frac{b}{a \cdot b + 1}
double code(double b, double a) {
	return ((double) (b / ((double) (((double) (a * b)) + 1.0))));
}
double code(double b, double a) {
	return ((double) (b / ((double) (((double) (a * b)) + 1.0))));
}

Error

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 7.8

    \[\frac{b}{a \cdot b + 1}\]
  2. Final simplification7.8

    \[\leadsto \frac{b}{a \cdot b + 1}\]

Reproduce

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