Monday, December 7, 2015

Using Specific Module Functions in Functions


To solve the second problem in problem set 5, I decided to put the majority of the code in a function. I needed to use the sqrt function from the math module however it did not want to work on its own. I used specifically the following code to be able to use the sqrt function inside my quadratic solver function.

from math import sqrt

No comments:

Post a Comment