def _get_indices_Pow(expr):
 (base, exp) = expr.as_base_exp()
 (binds, bsyms) = get_indices(base)
 (einds, esyms) = get_indices(exp)
 inds = (binds | einds)
 symmetries = {}
 return (inds, symmetries)

def _get_indices_Pow ( expr ) : ( base , exp ) = expr . as_base_exp ( ) ( binds , bsyms ) = get_indices ( base ) ( einds , esyms ) = get_indices ( exp ) inds = ( binds | einds ) symmetries = { } return ( inds , symmetries )
determine outer indices of a power or an exponential .