How to generate a symbolic multivariate polynomial of a given dimension in SymPy?
问题 I want to use power series to approximate some PDEs. The first step I need to generate symbolic multivariate polynomials, given a numpy ndarray. Consider the polynomial below: I want to take a m dimensional ndarray of D=[d1,...,dm] where dj s are non-negative integers, and generate a symbolic multivariate polynomial in the form of symbolic expression. The symbolic expression consists of monomials of the form: Fo example if D=[2,3] the output should be For this specific case I could nest two