def NumCoefficients(self):
"""
There are (n+d) choose n coefficients where n is the degree of the polynomial and d is the dimension
:return: Return the number of coefficients corresponding to the polynomial given the degree and dimension
"""
return nchoosek(self.degree + self.dimension, self.degree, exact=True)
评论列表
文章目录