Given two points, x,y and X1,Y2, the distance between those points are
distance=sqrt((x-x1)^2 +(y-y2)^2 )
Can you help me with this problem:
Find a formula for the distance from the point (X1, Y2)
(The numbers next to X and Y are like X sub 1, Y sub 2...)
2 answers
Perhaps from (x1,y1) to (x2,y2) ???
well, start at (x1,y1) and go right to (x2,y1)
you went (x2-x1) in the x direction
then turn straight up (a 90 degree turn up)
and proceed up to (x2,y2)
You went up a distance = (y2-y1)
NOW you have a right triangle and the hypotenuse, d, is the distance you want
d^2 = (x2-x1)^2 + (y2-y1)^2
so in the end
d = sqrt [ (x2-x1)^2 + (y2-y1)^2 ]
well, start at (x1,y1) and go right to (x2,y1)
you went (x2-x1) in the x direction
then turn straight up (a 90 degree turn up)
and proceed up to (x2,y2)
You went up a distance = (y2-y1)
NOW you have a right triangle and the hypotenuse, d, is the distance you want
d^2 = (x2-x1)^2 + (y2-y1)^2
so in the end
d = sqrt [ (x2-x1)^2 + (y2-y1)^2 ]