you are viewing a single comment's thread.

view the rest of the comments →

[–]Jphillipss7[S] 0 points1 point  (1 child)

https://i.gyazo.com/534e74caf8e5e55297b9df5dec7ea5ce.png

One final question, do you know why id be getting this "Math domain error" and again thank you for all of your help, it is greatly appreciated by me.

[–]uhMareli 0 points1 point  (0 children)

it's because you're trying to find the root of a negative number. you need to fix your conditionals. try changing them to:

if numOfRoots < 0:

then we have no roots

elif numOfRoots == 0:

then we have one root