solve z = p/(-l-z) + (1-p)/(-l-z) for p = 1/2 for l = 3