(self, other)
| 1339 | return poly1d(polymul(self.coeffs, other.coeffs)) |
| 1340 | |
| 1341 | def __rmul__(self, other): |
| 1342 | if isscalar(other): |
| 1343 | return poly1d(other * self.coeffs) |
| 1344 | else: |
| 1345 | other = poly1d(other) |
| 1346 | return poly1d(polymul(self.coeffs, other.coeffs)) |
| 1347 | |
| 1348 | def __add__(self, other): |
| 1349 | other = poly1d(other) |