My Adventures in Math and Technology
© Daniel Marvin.
The mid-point formula is defined as,
function midpoint(u, v) [(u[k]+v[k])/2 for k in 1:2] end @show midpoint([1; 0], [0; 1]) > midpoint([1; 0], [0; 1]) = (0.5, 0.5)