doc: correct and simplify baioca algorithm
doc: correct and simplify baioca algorithm

There was a sign error somewhere: I changed and simplified the formulae
anyway and the error went away.

ntd/adg,ntd/adg