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)
| 884 | return self.__class__(coef, self.domain, self.window, self.symbol) |
| 885 | |
| 886 | def deriv(self, m=1): |
| 887 | """Differentiate. |
| 888 | |
| 889 | Return a series instance of that is the derivative of the current |
| 890 | series. |
| 891 | |
| 892 | Parameters |
| 893 | ---------- |
| 894 | m : non-negative int |
| 895 | Find the derivative of order `m`. |
| 896 | |
| 897 | Returns |
| 898 | ------- |
| 899 | new_series : series |
| 900 | A new series representing the derivative. The domain is the same |
| 901 | as the domain of the differentiated series. |
| 902 | |
| 903 | """ |
| 904 | off, scl = self.mapparms() |
| 905 | coef = self._der(self.coef, m, scl) |
| 906 | return self.__class__(coef, self.domain, self.window, self.symbol) |
| 907 | |
| 908 | def roots(self): |
| 909 | """Return the roots of the series polynomial. |