title: Can I skip the complex(imaginary results) in a numpy array?
body: <p>Suppose I have a function like <code>sqrt(x)</code> and I am passing a list of numbers through it <code>[-1,0,1]</code>.</p>
  <p>This is going to give me an error saying that a negative argument is passed inside the square root function and the program is going to be halted after that without even checking for the 0 and 1 for which I would have gotten the real and &quot;allowed&quot; results in the first place.</p>
  <p>Is there a way I can command python to ignore the values for which it would give errors and move on to the next part of the list?</p>
  <p>Perhaps an algorithm like:</p>
  <pre><code>Start
  x =  [-1,0,1]
  Pass this list through the function sqrt(x)
  Ignore the values for which the function is going to the complex regime
  Give the results ([-,0,1])
  End
  </code></pre>
  <p>?</p>
  <p>Thanks.</p>