title: How to return array from element-wise calculation on two different arrays?
body: <p>I have the following two numpy arrays of n elements:</p>
  
  <pre><code>A = np.array([2 5 8 9 8 7 5 6])
  B = np.array([8 9 6 5 2 8 5 7])
  </code></pre>
  
  <p>I would like to obtain array C:</p>
  
  <pre><code>C = np.array([sqrt(2^2+8^2) sqrt(5^2+9^2) ... sqrt(6^2+7^2)])
  </code></pre>
  
  <p>That is, array C would consist of n elements; each element would be equal to the square root of the square of the respective element in A plus the square of the respective element in B.</p>
  
  <p>I tried using <code>np.apply_along_axis</code> but it seems that this function is designed for one array only.</p>