MCPcopy Index your code
hub / github.com/numpy/numpy / deriv

Method deriv

numpy/polynomial/_polybase.py:878–898  ·  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

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.

Callers 3

test_FractionMethod · 0.45
test_derivFunction · 0.45
test_derivMethod · 0.45

Calls 2

mapparmsMethod · 0.95
_derMethod · 0.95

Tested by 3

test_FractionMethod · 0.36
test_derivFunction · 0.36
test_derivMethod · 0.36