def F(x): y=8*x**3+14*x**2-2*x-7/2 return y x=-1.5 while x<= 1.5: if F(x)==0: print(x) x=x+0.25