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