<filename>tournaments/quadraticEquation/quadraticEquation.py<gh_stars>1-10
def quadraticEquation(a, b, c):
    d = (b ** 2) - (4 * a * c)
    if d < 0:
        return []
    return sorted(set([(-b - math.sqrt(d)) / (2 * a), (-b + math.sqrt(d)) / (2 * a)]))

<filename>tournaments/quadraticEquation/quadraticEquation.py<gh_stars>1-10
def quadraticEquation(a, b, c):
    d = (b ** 2) - (4 * a * c)
    if d < 0:
        return []
    return sorted(set([(-b - math.sqrt(d)) / (2 * a), (-b + math.sqrt(d)) / (2 * a)]))
