title: How to deal with exponent overflow of 64float precision in python?
body: <p>I am a newbie in python sorry for the simple question.</p>
  
  <p>In the following code, I want to calculate the exponent and then take the log.</p>
  
  <p><code>Y=numpy.log(1+numpy.exp(1000))</code></p>
  
  <p>The problem is that when I take the exponent of 710 or larger numbers the numpy.exp() function returns 'inf' even if I print it with 64float it prints 'inf'.</p>
  
  <p>any help regarding the problem will be appreciated.</p>