title: python get stacked and wont continue working, am i using to much data
body: <p>i am making a conversion of a list that contains more than 10,000 values, but Python always stops at the data n#2530, i think that i am asking python to make numerous iterations, that eventually it can no longer process more data. i would appreciate your help and thank you in advance. </p>
  
  <p>code:</p>
  
  <pre><code>def conver(x,y,z,h,latitudes,longitudes):
  size_data= len(x)
  
  for i in range(0,size_data):
      degrees_long,degrees_latitude,height=ECEF_WSG84(x[i],y[i],z[i])
      latitudes.append(degrees_latitude)
      longitudes.append(degrees_long)
  </code></pre>
  
  <p>info: i am using python 2.7</p>
  
  <p>computer:</p>
  
  <p>-processor: AMDFX(tm)-9590 Eight-core Processor 4.70GHz</p>
  
  <p>-memory RAM: 16GB</p>
  
  <p>-Operative system: 64bits</p>
  
  <p>The function ECEF_WSG84(x[i],y[i],z[i]) that i use, makes interations to find the aproximate value of the latitude, but it can find the longitude without using iterations, here is the code:</p>
  
  <pre><code>def ECEF_WSG84(x,y,z):
  a=6378137
  #1/f= 298.257224
  i=298.257223563
  f=1/i
  degrees_long=inverse_tangent_longitude(x,y)
  degrees_latitude,height= inverse_tangent_latitude(x,y,z,f,a)
  return(degrees_long,degrees_latitude,height)
  
  def inverse_tangent_latitude(x,y,z,f,a):
  e= 8.1819190842622/100
  r= math.sqrt((x**2)+(y**2)+(z**2))
  p =math.sqrt((x**2)+(y**2))
  initial_latitude= math.atan2(p,z)
  
  new_latitude= initial_latitude
  
  task= False
  while (task==False):
      c_latitude =1/(math.sqrt(((math.cos(new_latitude))**2)+(((1-f)**2)*((math.sin(new_latitude))**2))))
      Rn_latitude= a*c_latitude
  
  
      h_latitude= (p/(math.cos(new_latitude)))-Rn_latitude
      next_latitude= math.atan((z/p)*((1-((e**2)*(Rn_latitude/(Rn_latitude+h_latitude))))**-1))
  
      rest= next_latitude-new_latitude
  
      if (rest==0):
          task=True
          degrees_next_latitude= math.degrees(next_latitude)
          return(degrees_next_latitude,h_latitude)
  
      else:
          new_latitude= next_latitude
          task= False
  
  
  def inverse_tangent_longitude(x,y):
  #we must determine the location of the Longitude.
  if (x&lt;0)&amp;(y&gt;0):
      a=180+math.atan(y/x)
  
  elif(x&lt;0)&amp;(y&lt;0):
      a=180-math.atan(y/x)
  
  else:
      a=math.atan(y/x)
  degrees_a=math.degrees(a)
  return(degrees_a)
  </code></pre>