I am attempting to create a function that can find the distance between a pair of points. Imagine I was walking or driving on a (x,y) plane and I started at the point (1,1) and ended up at (4,7). In general, it could be any 2 pairs of points..
Do I have to explicitly define my list as a pair of points, like (1,1) and (4,7)? Why cant I define it as the way I have it with the x1,x2 and y1,y2?? Then at the very end I could plug in any pair of points for the distance function I created.. Unless I have a syntax error, or maybe I don’t have something define correctly.
It appears I have solved my own problem (which is always a great feeling).. It appears I couldn’t use the “Abs” command for the whole function, but I have to apply it to both..Is this true? This way works great for me.
The more I explore mathematica and attempt to create my own functions, the more I realize there is already built in functions for the tasks I’m trying to do.