Average Error: 7.8 → 7.8
Time: 617.0ms
Precision: binary64
\[\frac{b \cdot 1}{a \cdot b + 1}\]
\[\frac{b \cdot 1}{a \cdot b + 1}\]
\frac{b \cdot 1}{a \cdot b + 1}
\frac{b \cdot 1}{a \cdot b + 1}
double code(double b, double a) {
	return ((double) (((double) (b * 1.0)) / ((double) (((double) (a * b)) + 1.0))));
}
double code(double b, double a) {
	return ((double) (((double) (b * 1.0)) / ((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 \cdot 1}{a \cdot b + 1}\]
  2. Final simplification7.8

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

Reproduce

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