- import math
- def solutions(a, b, c):
- sol1 = (-b + math.sqrt(b**2 - 4*a*c))/(2*a)
- sol2 = (-b - math.sqrt(b**2 - 4*a*c))/(2*a)
- return sol1, sol2
- def vertex(a, b, c):
- return (-b/(2*a), c - b**2 / (4*a))
- import quadratic
- quadratic.solutions(1, -2, 1)
- quadratic.vertex(1, -2, 1)
- from quadratic import solutions
- solutions(1, -2, 1)