MCPcopy Create free account
hub / github.com/numpy/numpy / deriv

Method deriv

numpy/polynomial/_polybase.py:886–906  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

test_derivFunction · 0.45
test_derivMethod · 0.45

Calls 2

mapparmsMethod · 0.95
_derMethod · 0.95

Tested by 2

test_derivFunction · 0.36
test_derivMethod · 0.36