In 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. given two variables, p1 and p2 that are of type point -- a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two points represented by p1 and p

Respuesta :

The formula to find the distance between points [tex] P_{1} [/tex] and [tex] x_{2} [/tex] is given as [tex] \sqrt{ ( y_{1}- y_{2}) ^{2}+ ( x_{1}- x_{2}) ^{2} } [/tex], where

[tex] y_{1}- y_{2} [/tex] is the vertical distance between two points on the y-axis
[tex] x_{1} - x_{2} [/tex] is the horizontal distance between two points on the x-axis
Ver imagen merlynthewhizz
ACCESS MORE