Your problem is in the part that is trying to fulfill the quadratic formula:
(-b+(((b**2)-(4*a* c))* * 0.5)/2*a)
The problem is that * has the same priority as / , so you divide by 2 and then multiply by a . Also your parentheses are off, so I reduced the unnecessary and moved the wrong ones. In short, -b did not connect to the square root before division. Do you want to:
(-b+(b**2-4*a*c)**0.5)/(2*a)
PS To ask questions, it would be better to ask in the form of something like:
>>> a = 2 >>> b = 1 >>> c = 3 >>> (-b+(((b**2)-(4*a* c))* * 0.5)/2*a) got blah, expected blam
Since other printing and typing is not to blame (that you should be able to work quite easily).
source share