Question 1181085
<pre>

You only need two formulas:

{{{matrix(1,3,
Midpoint,
""="",
(matrix(1,5,(x[1]+x[2])/2^"",",",(y[1]+y[2])/2^"",",",(z[1]+z[2])/2^""))

)}}}

and

{{{matrix(1,3,
Distance,
""="",
sqrt((x[2]-x[1])^2+(y[2]-y[1])^2+(z[2]-z[1])^2))}}}

and

O = (0,0,0)

Happy plugging in and simplifying!

Edwin</pre>