mindspore.numpy.polyder

mindspore.numpy.polyder(p, m=1)[源代码]

Returns the derivative of the specified order of a polynomial.

说明

Numpy object poly1d is currently not supported.

参数
  • p (Union[int, float, bool, list, tuple, Tensor) – Polynomial to differentiate. A sequence is interpreted as polynomial coefficients.

  • m (int, optional) – Default: 1 , order of differentiation.

返回

Tensor, a new polynomial representing the derivative.

异常

ValueError – If p has more than 1 dimensions.

Supported Platforms:

Ascend GPU CPU

样例

>>> import mindspore.numpy as np
>>> print(np.polyder([1, 1, 1, 1]))
[3 2 1]