human
Find if two given Quadratic equations have common roots or not | Function to check if 2 quadratic equations have common roots or not ..
Driver code"
How can the above be solved in Python?
 ... What is a code to find if two given Quadratic equations have common roots or not and the other steps required?
assistant
#Here is code to find if two given Quadratic equations have common roots or not and the other steps required.
 def checkSolution ( a1 , b1 , c1 , a2 , b2 , c2 ) :
	return ( ( a1 / a2 ) == ( b1 / b2 ) and ( b1 / b2 ) == ( c1 / c2 ) )
a1 , b1 , c1 = 1 , - 5 , 6
a2 , b2 , c2 = 2 , - 10 , 12
if ( checkSolution ( a1 , b1 , c1 , a2 , b2 , c2 ) ) :
	print ( " Yes " )
else :
	print ( " No " )