while na>0.0 and nb>0.0: na=nai-a*x nb=nbi-b*x nc=nci+c*x nd=ndi+d*x print("na=",na,"\tnb=",nb,"\tnc=",nc,"\tnd=",nd) x=x+pas print("Xmax est",x)