Find the Euclidean distance between (1,3,4) (4,2,-5)
"d(p,q)=\u221a((q1\u2212p1)^ \n2\n +(q2\u2212p2) ^\n2\n +(q3\u2212p3)^ \n2\n +...(qn\u2212pn)^ \n2"
"q1 = 1"
"q2 = 3"
"q3 = 4"
"p1 = 4"
"p2 = 2"
"p3 = -5"
"=\u221a((4\u22121)^ \n2\n +(2\u22123) ^\n2\n +(\u22125\u22124) ^\n2\n ))"
"= \u221a(3^2+1^+(\u22129^2))"
"= \u221a9 + 1 + 81"
"= \u221a91"
"= 9.5394"
Comments
Leave a comment