MATH SOLVE

9 months ago

Q:
# Mathematics, the distance between one point (a) and another point (b), each with coordinates (x,y), can be computed by taking the differences of their x coordinates and their y coordinates and then squaring those differences. the squares are added and the square root of the resulting sum is taken and... voila! the distance. assume that point has already been defined as a structured type with two double fields, x and y. define a function dist that takes two point arguments and returns the distance between the points they re

Accepted Solution

A:

(X1 , Y1)

(X2, Y2)

Distance = [tex] \sqrt{(X1-X2)^} + (Y1-Y2)^{2} } [/tex]

(X2, Y2)

Distance = [tex] \sqrt{(X1-X2)^} + (Y1-Y2)^{2} } [/tex]