Integrate. Return a series instance that is the definite integral of the current series. Parameters ---------- m : non-negative int The number of integrations to perform. k : array_like Integration constants. The first constan
(self, m=1, k=[], lbnd=None)
| 843 | return pu.mapparms(self.domain, self.window) |
| 844 | |
| 845 | def integ(self, m=1, k=[], lbnd=None): |
| 846 | """Integrate. |
| 847 | |
| 848 | Return a series instance that is the definite integral of the |
| 849 | current series. |
| 850 | |
| 851 | Parameters |
| 852 | ---------- |
| 853 | m : non-negative int |
| 854 | The number of integrations to perform. |
| 855 | k : array_like |
| 856 | Integration constants. The first constant is applied to the |
| 857 | first integration, the second to the second, and so on. The |
| 858 | list of values must less than or equal to `m` in length and any |
| 859 | missing values are set to zero. |
| 860 | lbnd : Scalar |
| 861 | The lower bound of the definite integral. |
| 862 | |
| 863 | Returns |
| 864 | ------- |
| 865 | new_series : series |
| 866 | A new series representing the integral. The domain is the same |
| 867 | as the domain of the integrated series. |
| 868 | |
| 869 | """ |
| 870 | off, scl = self.mapparms() |
| 871 | if lbnd is None: |
| 872 | lbnd = 0 |
| 873 | else: |
| 874 | lbnd = off + scl * lbnd |
| 875 | coef = self._int(self.coef, m, k, lbnd, 1. / scl) |
| 876 | return self.__class__(coef, self.domain, self.window, self.symbol) |
| 877 | |
| 878 | def deriv(self, m=1): |
| 879 | """Differentiate. |