title: using python to calculate Vector Projection
body: <p>Is there an easier command to compute vector projection?
  I am instead using the following:</p>
  
  <pre><code>x = np.array([ 3, -4,  0])
  y = np.array([10,  5, -6])
  z=float(np.dot(x, y))
  z1=float(np.dot(x, x))
  z2=np.sqrt(z1)
  z3=(z/z2**2)
  x*z3
  </code></pre>