python Programming Glossary: self.coeffs
Multiplying polynomials in python http://stackoverflow.com/questions/5413158/multiplying-polynomials-in-python args 0 if isinstance val Polynomial # copy constructor self.coeffs val.coeffs elif isinstance val collections.Iterable # from.. elif isinstance val collections.Iterable # from sequence self.coeffs list val else # from single scalar self.coeffs val 0 else.. self.coeffs list val else # from single scalar self.coeffs val 0 else # multiple scalars self.coeffs i 0 for i in args..
|