title: splitting an array in Python
body: <p>I have an array that is <code>(219812,2)</code> but I need to split to <code>2 (219812)</code>.</p>
  
  <p>I keep getting the error <code>ValueError: operands could not be broadcast together with shapes (219812,2) (219812)</code></p>
  
  <p>How can I accomplish?</p>
  
  <p>As you can see, I need to take the two separate solutions from u =  odeint and multiple them.</p>
  
  <pre><code>def deriv(u, t):
      return array([ u[1], u[0] - np.sqrt(u[0]) ])
  
  time = np.arange(0.01, 7 * np.pi, 0.0001)
  uinit = array([ 1.49907, 0])
  u = odeint(deriv, uinit, time)
  
  x = 1 / u * np.cos(time)
  y = 1 / u * np.sin(time)
  
  plot(x, y)
  plt.show()
  </code></pre>