title: how do I solve the overflow error : math range error
body: <p>I am getting an overflow error </p>
  
  <pre><code>import numpy as np
  
  pi = np.pi
  
  from scipy.integrate import quad
  from math import exp
  
  hbar = 1.055e-34
  boltz = 1.381e-23
  c = 2.998e8
  
  def z(x):
      return (x**3)/(exp(x)-1)
  
  B=quad(z,0,np.inf)       
  A= ((boltz**4)*B)/(4*(pi**2)*(c**2)*(hbar**3))
  
  print (A) 
  </code></pre>
  
  <p>It is giving me an overflow error in line 11, i.e <code>return (x**3)/(exp(x)-1)</code></p>