Using python in math -


ok want solve equation through python cant figure out do! tried using loops didn't work well

im new python can suggest should do

rwbg-(wbr^2)-wbr-(br^3)-(3br^2)+2br-(r^3)-(6r^2)+11r-6 = 0 

r,w,b,g different variables

for in range(100):     r == in range(100):     w == in range(100):     b == in range(100):     g ==  if r*w*b*g-w*b*r**2-w*b*r-b*r**3-3*b*r**2+2*b*r-r**3-6*r**2+11*r-6 == 0:     print(r)     print(w)     print(b)     print(g) 

ive tried isnt successful

assuming each letter variable, , want evaluate expression, easy python script be:

def equation (r,w,b,g,r):     return r*w*b*g - w*b*(r**2) - w*b*r - b(r**3) - 3*b*(r**2) + 2*b*r - r**3 - 6*(r**2) + 11*r - 6 

Comments