mindspore.numpy.polysub

mindspore.numpy.polysub(a1, a2)[源代码]

Difference (subtraction) of two polynomials. Given two polynomials a1 and a2, returns a1 - a2.

说明

Numpy object poly1d is currently not supported.

参数
返回

Tensor, the difference of the inputs.

异常

ValueError – If the input array has more than 1 dimensions.

Supported Platforms:

Ascend GPU CPU

样例

>>> import mindspore.numpy as np
>>> print(np.polysub([2, 10, -2], [3, 10, -4]))
[-1  0  2]