(expr, opt)
return poly, gens
Transform an expression into a multinomial form given generators.
Transform an expression into a multinomial form given generators.
Transform an expression into a multinomial form given generators .
def _dict_from_expr_if_gens(expr, opt):
    """Transform an expression into a multinomial form given generators. """
    (poly,), gens = _parallel_dict_from_expr_if_gens((expr,), opt)
    return poly, gens
def _dict_from_expr_if_gens ( expr , opt ) : ( poly , ) , gens = _parallel_dict_from_expr_if_gens ( ( expr , ) , opt ) return poly , gens