parameters: (base, n)
docstring: return a string representing a unit to a power n.
docstring_summary: return a string representing a unit to a power n.
docstring_tokens: return a string representing a unit to a power n .
function: def ufmt(base, n):
      """return a string representing a unit to a power n."""
      if n == 0: return ''
      if n == 1: return '-'+base
      if n == -1: return '/'+base
      if n > 0: return '-'+base+str(n)
      if n < 0: return '/'+base+str(-n)
function_tokens: def ufmt ( base , n ) : if n == 0 : return '' if n == 1 : return '-' + base if n == - 1 : return '/' + base if n > 0 : return '-' + base + str ( n ) if n < 0 : return '/' + base + str ( - n )