mindspore.numpy.polyadd

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

Finds the sum of two polynomials. Returns the polynomial resulting from the sum of two input polynomials.

说明

Numpy object poly1d is currently not supported.

参数
返回

Tensor, the sum 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.polyadd([1, 2], [9, 5, 4]))
[9 6 6]