I'm trying to calculate the euclidean distance between two points (x1,y1)
and (x2,y2)
which is
sqrt( (x2-x1)^2 + (y2-y1)^2 )
Is there a way to calculate this easily with Emacs calc?
(I looked in the Info pages, but was not able to tell if there a way to do this easily. I can use f h
to compute the hypotenuse, but I can't figure out how to use that with points, or if Emacs has any first class notion of a point)