human
Absolute difference between sum and product of roots of a quartic equation | Function taking coefficient of each term of equation as input.
Finding sum of roots.
Finding product of roots.
Absolute difference.
Driver Code"
How can the above be solved in Python?

Give me a code to absolute difference between sum and product of roots of a quartic equation and the other steps required?
assistant
#Here is code to absolute difference between sum and product of roots of a quartic equation and the other steps required.
 def sumProductDifference ( a , b , c , d , e ) :
	rootSum = ( - 1 * b ) / a
	rootProduct = e / a
	return abs ( rootSum - rootProduct )
print ( sumProductDifference ( 8 , 4 , 6 , 4 , 1 ) )