First time here? Check out the FAQ!
answered 9 years ago
def branching_dimensions(chi): monomials = chi.monomials() coef = chi.coefficients() res = "" for i in range(len(coef)): res += str(coef[i]) + "*" + str(monomials[i].degree()) + " + " return res[:-3]