traceback (most recent call last)file "quadratic py"line in main(file "quadratic py"line in main discroot math sqrt( cvalueerrormath domain error the problem here is that ac and the sqrt function is unable to compute the square root of negative number python prints math domain error this is telling us that negative numbers are not in the domain of the sqrt function right nowwe don' have the tools to fix this problemso we will just have to assume that the user gives us solvable equations actuallyquadratic py did not need to use the math library we could have taken the square root using exponentiation *(can you see how?using math sqrt is somewhat more efficientand it allowed me to illustrate the use of the math library in generalif your program requires common mathematical functionthe math library is the first place to look table shows some of the other functions that are available in the math library python pi sin(xcos(xtan(xasin(xacos(xatan(xlog(xlog (xexp(xceil(xfloor(xmathematics sin cos tan arcsin arccos arctan ln log ex english an approximation of pi an approximation of the sine of the cosine of the tangent of the inverse of sine the inverse of cosine the inverse of tangent the natural (base elogarithm of the common (base logarithm of the exponential of the smallest whole number > the largest whole number < table some math library functions accumulating resultsfactorial suppose you have root beer sampler pack containing six different kinds of root beer drinking the various flavors in different orders might affect how good they taste if you wanted to try out every possible orderinghow many different orders would there beit turns out the answer is surprisingly large number do you know where this number comes fromthe value is the factorial of