human
Give me a code to find the other end point of a line with given one end and mid and the other steps required given the following:
Find the other end point of a line with given one end and mid | function to find the end point of a line.
find end point for x coordinates.
find end point for y coordinates.
Driven Program"
Solution in Python:
assistant
#Here is code to find the other end point of a line with given one end and mid and the other steps required.
 def otherEndPoint ( x1 , y1 , m1 , m2 ) :
	x2 = ( 2 * m1 - x1 )
	y2 = ( 2 * m2 - y1 )
	print ( " x2 ▁ = ▁ { } , ▁ y2 ▁ = ▁ { } " . format ( x2 , y2 ) )
x1 = - 4
y1 = - 1
m1 = 3
m2 = 5
otherEndPoint ( x1 , y1 , m1 , m2 )