1 | initial version |
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]