Find the Euclidean distance between (2,5) (4,2)
"d(p,q) = \u221a((q1-p1)^2 + (q2-p2)^2 + ...(qn-pn)^2"
"q1 = 2"
"q2 = 5"
"p1 = 4"
"p2 = 2"
"=\u221a(((4\u22122) ^\n2\n +(2\u22125)^ \n2"
"=\u221a2 ^\n2\n +(\u22123)^ \n2"
"=\u221a4+9"
"= \u221a13"
"= 3.6056"
Comments
Leave a comment