title: What is the most efficient way of doing square root of sum of square of two numbers?
body: <p>I am looking for the more efficient and shortest way of performing the square root of a sum of squares of two or more numbers. I am actually using <code>numpy</code> and this code:</p>
  
  <pre><code>np.sqrt(i**2+j**2)
  </code></pre>
  
  <p>That seems five time faster than:</p>
  
  <pre><code>np.sqrt(sum(np.square([i,j])))
  </code></pre>
  
  <p>(i and j are to numbers!)</p>
  
  <p>I was wondering if there was already a built-in function more efficient to perform this very common task with even less code.</p>