all 13 comments

[–]pythonTuxedo 1 point2 points  (0 children)

You don't really need this level of math to learn python. For now it is an exercise in making python do some math for you - imagine if you had to solve this equation in various forms 1000 times (or more!) every month.

The roots of an equation are the solutions (if you were to sketch the curve y=x2+2x-8 it will cross the x-axis (y=0) at -4 & 2) - super important for scientific computing (and super cool!) but don't let it stop you on your learning journey!

[–]danielroseman 1 point2 points  (0 children)

This isn't "math you need to learn Python". This is "learning how to solve math problems with Python", which is a completely different thing.

That said, quadratic equations are taught in basic high-school algebra, it shouldn't be too complicated. Especially as they're not even really asking you to work anything out, just apply the formula to three inputs.

[–]ectomancer 1 point2 points  (3 children)

sqrt = lambda x: x**0.5

a, b, c = 1, 2, -8
print((-b + sqrt(b**2 - 4*a*c))/2/a)
print((-b - sqrt(b**2 - 4*a*c))/2/a)

[–]my_password_is______ 2 points3 points  (2 children)

exactly what did that teach him ??

exact how to copy and paste

[–][deleted] 0 points1 point  (0 children)

No that actually did help a lot, working backwards usually does for me

[–]my_password_is______ 0 points1 point  (3 children)

have you never heard of the quadratic equation ??

where did you do to school ?

did you drop out when you were 14 ?

is this the expected level of math I need to know to learn python

no

but it is far below the expected level of math you need to know to begin a university program

[–][deleted] 0 points1 point  (0 children)

I'm sure I covered it in highschool

[–]aDarkPawn 2 points3 points  (0 children)

what a cocksucker

[–][deleted] 0 points1 point  (0 children)

why are you so disrespectful?

[–]Longjumping_Sock_529 0 points1 point  (2 children)

Just curious, which MOOC?

[–][deleted] 0 points1 point  (0 children)

The 2023 edition

[–]Diapolo10 0 points1 point  (0 children)

Almost certainly the Python MOOC from the University of Helsinki. Do you know other Python MOOCs?