human
Check if possible to move from given coordinate to desired coordinate | Python program to check if it is possible to reach ( a , b ) from ( x , y ) . Returns GCD of i and j.
Returns true if it is possible to go to ( a , b ) from ( x , y ).
Find absolute values of all as sign doesn 't  matter..
If gcd is equal then it is possible to reach . Else not possible ..
Driven Program Converting coordinate into positive integer"
Solution in Python:
 ... Give me a code to check if possible to move from given coordinate to desired coordinate and the other steps required?
assistant
#Here is code to check if possible to move from given coordinate to desired coordinate and the other steps required.
 def gcd ( i , j ) :
	if ( i == j ) :
		return i
	if ( i > j ) :
		return gcd ( i - j , j )
	return gcd ( i , j - i )
def ispossible ( x , y , a , b ) :
	x , y , a , b = abs ( x ) , abs ( y ) , abs ( a ) , abs ( b )
	return ( gcd ( x , y ) == gcd ( a , b ) )
x , y = 35 , 15
a , b = 20 , 25
if ( ispossible ( x , y , a , b ) ) :
	print " Yes "
else :
	print " No "