I have 3 points on a graph - (0,0,0), (0,0,4), (4,0,0). Would it be true to state that the straight line going from (0,0,4) to (4,0,0) equals 32^.5?
This is how I did it: first I found the distances between (0,0,0) & (4,0,0) on the x-axis = 4 units, & between (0,0,0) & (0,0,4) on the z axis = 4 units. After that, I used Pythagoras's theorem to find the straight line from (0,0,4) to (4,0,0), which involves the z & x axis.
Here is the calculation for that:
- Code: Select all
a^2 + b^2 = c^2 /* a = dist (0,0,0)to(4,0,0); b = dist (0,0,0)to(0,0,4); c = dist (0,0,4)to(4,0,0)*/
4^2 + 4^2 = c^2
c = 32^.5
