e=\frac{1}{2}\left(a+b-{ab \over d}\right)