human
Check whether the point ( x , y ) lies on a given line | Function that return true if the given point lies on the given line.
If ( x , y ) satisfies the equation of the line.
Driver code"
Solution in Python:
assistant
#Here is code to check whether the point ( x , y ) lies on a given line and the other steps required.
 def pointIsOnLine ( m , c , x , y ) :
	if ( y == ( ( m * x ) + c ) ) :
		return True ;
	return False ;
m = 3 ; c = 2 ;
x = 1 ; y = 5 ;
if ( pointIsOnLine ( m , c , x , y ) ) :
	print ( " Yes " ) ;
else :
	print ( " No " ) ;