Write a function to return the product of the roots of a quadratic equation ax**2 + bx + c = 0


Topic: Write a function to return the product of the roots of a quadratic equation ax**2 + bx + c = 0

Solution

def prod_of_roots(a:float,b:float):
    if a:
        return -b/a
    else:
        return None



List all Python Programs