Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 7 Online
OpenStudy (anonymous):

i need help to find out what i need to do to solve this problem Question :Positive root of the following equation: 34*x^2 + 68*x - 510 Recall: a*x^2 + b*x + c x1 = ( - b + sqrt ( b*b - 4*a*c ) ) / ( 2*a) I tried this on my python shell but getting an error and i think m entering something wrong

OpenStudy (anonymous):

It has been awhile since I've done this type of equation...I calculated it as x^2=13, if that helps.

OpenStudy (anonymous):

Don't forget to do this: from math import * because if you don't, you'll have to do math.sqrt(....), if you just use sqrt without that line, python thinks that you are using your own definition called sqrt.

OpenStudy (anonymous):

have you read the Tutorial in the Python docs?? http://dpaste.com/905836/

OpenStudy (anonymous):

Should be roots of -5 and 3

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!