original_docstring: 
      Calculate the efficiencies for a sphere where m or x may be arrays.
  
      Args:
          m: the complex index of refraction of the sphere
          x: the size parameter of the sphere
  
      Returns:
          qext: the total extinction efficiency
          qsca: the scattering efficiency
          qback: the backscatter efficiency
          g: the average cosine of the scattering phase function
      
docstring: Calculate the efficiencies for a sphere where m or x may be arrays.
docstring_tokens: Calculate the efficiencies for a sphere where m or x may be arrays .
code: def mie(m, x):
      """
      Calculate the efficiencies for a sphere where m or x may be arrays.
  
      Args:
          m: the complex index of refraction of the sphere
          x: the size parameter of the sphere
  
      Returns:
          qext: the total extinction efficiency
          qsca: the scattering efficiency
          qback: the backscatter efficiency
          g: the average cosine of the scattering phase function
      """
      try:
          mlen = len(m)
      except:
          mlen = 0
          mm = m
  
      try:
          xlen = len(x)
      except:
          xlen = 0
          xx = x
  
      if xlen == 0 and mlen == 0:
          return _mie_scalar(mm, xx)
  
      if xlen and mlen and xlen != mlen:
          raise RuntimeError('m and x arrays to mie must be same length')
  
      thelen = max(xlen, mlen)
      qext = np.empty(thelen)
      qsca = np.empty(thelen)
      qback = np.empty(thelen)
      g = np.empty(thelen)
  
      for i in range(thelen):
          if mlen > 0:
              mm = m[i]
  
          if xlen > 0:
              xx = x[i]
  
          qext[i], qsca[i], qback[i], g[i] = _mie_scalar(mm, xx)
  
      return qext, qsca, qback, g
code_tokens: def mie ( m , x ) : try : mlen = len ( m ) except : mlen = 0 mm = m try : xlen = len ( x ) except : xlen = 0 xx = x if xlen == 0 and mlen == 0 : return _mie_scalar ( mm , xx ) if xlen and mlen and xlen != mlen : raise RuntimeError ( 'm and x arrays to mie must be same length' ) thelen = max ( xlen , mlen ) qext = np . empty ( thelen ) qsca = np . empty ( thelen ) qback = np . empty ( thelen ) g = np . empty ( thelen ) for i in range ( thelen ) : if mlen > 0 : mm = m [ i ] if xlen > 0 : xx = x [ i ] qext [ i ] , qsca [ i ] , qback [ i ] , g [ i ] = _mie_scalar ( mm , xx ) return qext , qsca , qback , g
short_docstring: Calculate the efficiencies for a sphere where m or x may be arrays.
short_docstring_tokens: Calculate the efficiencies for a sphere where m or x may be arrays .
comment: """
      Calculate the efficiencies for a sphere where m or x may be arrays.
  
      Args:
          m: the complex index of refraction of the sphere
          x: the size parameter of the sphere
  
      Returns:
          qext: the total extinction efficiency
          qsca: the scattering efficiency
          qback: the backscatter efficiency
          g: the average cosine of the scattering phase function
      """