Differentiate. Return a series instance of that is the derivative of the current series. Parameters ---------- m : non-negative int Find the derivative of order `m`. Returns ------- new_series : series A new s
(self, m=1)
| 876 | return self.__class__(coef, self.domain, self.window, self.symbol) |
| 877 | |
| 878 | def deriv(self, m=1): |
| 879 | """Differentiate. |
| 880 | |
| 881 | Return a series instance of that is the derivative of the current |
| 882 | series. |
| 883 | |
| 884 | Parameters |
| 885 | ---------- |
| 886 | m : non-negative int |
| 887 | Find the derivative of order `m`. |
| 888 | |
| 889 | Returns |
| 890 | ------- |
| 891 | new_series : series |
| 892 | A new series representing the derivative. The domain is the same |
| 893 | as the domain of the differentiated series. |
| 894 | |
| 895 | """ |
| 896 | off, scl = self.mapparms() |
| 897 | coef = self._der(self.coef, m, scl) |
| 898 | return self.__class__(coef, self.domain, self.window, self.symbol) |
| 899 | |
| 900 | def roots(self): |
| 901 | """Return the roots of the series polynomial. |