title: Math expression OverflowError: int too large to convert to float
body: <p>Im trying to code a formula to calculate a theoretical delay on a ethernet network over 2000 users. I've some static declared variables, but i'm having an OverflowError due to the operation values. Any idea to solve this? Any guidance will be appreciated.</p>
  <p><a href="https://i.stack.imgur.com/VNk78.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VNk78.png" alt="enter image description here" /></a></p>
  <pre class="lang-py prettyprint-override"><code>tp =0.87*10**-7
  ti = 0.819*10**-3
  c = 2
  tg = 96/(1*10**7)
  x_2 = ti**2
  Et , Bt, Ew= [], [], [] 
  for i in range(0,2000):
    lambdaa = i*2
    ro = lambdaa*(ti/2)
    Ew = (lambdaa*(x_2)/4*(1-ro))
    Bt = (tp/2)*(sum([2**(i-1)]))
    Et = (tp + ti + Ew +(c*(ti+tg+2*tp))+ Bt )
  
  </code></pre>
  <p>Traceback:</p>
  <pre><code>---&gt; 12   Bt = (tp/2)*(sum([2**(i-1)]))
       13   Et = (tp + ti + Ew + Bt +(c*(ti+tg+2*tp)))
       14 
  
  OverflowError: int too large to convert to float
  </code></pre>