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
function checkSolution ( a1 , b1 , c1 , a2 , b2 , c2 ) { return ( a1 / a2 ) == ( b1 / b2 ) && ( b1 / b2 ) == ( c1 / c2 ) ; } a1 = 1 , b1 = - 5 , c1 = 6 ; a2 = 2 , b2 = - 10 , c2 = 12 ; if ( checkSolution ( a1 , b1 , c1 , a2 , b2 , c2 ) ) document . write ( " " ) ; else document . write ( " " ) ;