I am trying to subclass Poly to change Poly.coeffs. Here is the code.
---
def poly_coeffs_filled(p):
cs = p.coeffs
coeff_dict = dict(map(lambda x:
(str(x[0][0]),str(x[1])),p.as_dict().items()))
degree = p.deg
Hello all,
I want to build a class to describe a generating function (as used in
the context of discrete probability distributions). It would have
exactly the functionality of the Poly class, have a normalization
constraint on the coefficients, have a few more special methods that
I'd define, an