def _indexes(gumt, gdmt, gwmt, gdnt):
 try:
  ui = (gumt / gdmt)
 except ZeroDivisionError:
  ui = 0.0
 try:
  oi = (gwmt / gdnt)
 except ZeroDivisionError:
  oi = 0.0
 try:
  sw = (oi / ui)
 except ZeroDivisionError:
  if (oi == 0.0):
   sw = float('nan')
  else:
   sw = float('inf')
 return (ui, oi, sw)

def _indexes ( gumt , gdmt , gwmt , gdnt ) : try : ui = ( gumt / gdmt ) except ZeroDivisionError : ui = 0.0 try : oi = ( gwmt / gdnt ) except ZeroDivisionError : oi = 0.0 try : sw = ( oi / ui ) except ZeroDivisionError : if ( oi == 0.0 ) : sw = float ( 'nan' ) else : sw = float ( 'inf' ) return ( ui , oi , sw )
count understemming index .