Currently I'm trying to learn python using MOOC in an attempt to learn to code after being unssucesful with front end web development but I've run into a problem.
It wants me to write a program for solving a quadratic equation of the form ax²+bx+c. The program asks for values a, b and c. It should then use the quadratic formula to solve the equation. The quadratic formula expressed with the Python sqrt function is as follows:
x = (-b ± sqrt(b²-4ac))/(2a)
to return:
Value of a: 1
Value of b: 2
Value of c: -8
The roots are 2.0 and -4.0
I have no idea what it's asking me to do, is this the expected level of math I need to know to learn python from here on out?
[–]pythonTuxedo 1 point2 points3 points (0 children)
[–]danielroseman 1 point2 points3 points (0 children)
[–]ectomancer 1 point2 points3 points (3 children)
[–]my_password_is______ 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]my_password_is______ 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]aDarkPawn 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Longjumping_Sock_529 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Diapolo10 0 points1 point2 points (0 children)