title: numpy.ndarray object is not callable
body: <p>I'm new to Python and, I'm trying to write a Python code to compute the density of states Here's my code  for which I am getting TypeError: 'numpy.ndarray' object is not callable error.</p>
  
  <p>File "DOS.py", line 35, in </p>
  
  <pre><code> s = (eigenValues_of_M(k)**2)*(1/pi)*(eta/((E-eigenValues_of_M(k))+(eta**2)))
  </code></pre>
  
  <p>TypeError: 'numpy.ndarray' object is not callable</p>
  
  <pre><code>    s=0
      eta =0.5
      for E in range (-6, 6):
          for i in range(1, L+1):
              for n in range (1, 3):
                  s = (eigenValues_of_M(k)**2)*(1/pi)*(eta/((E-eigenValues_of_M(k))+(eta**2)))
      DOS = (1/L)*s
      print(DOS)
  </code></pre>