mindspore.numpy.polyadd

View Source On Gitee
mindspore.numpy.polyadd(a1, a2)[source]

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

Note

Numpy object poly1d is currently not supported.

Parameters
Returns

Tensor, the sum of the inputs.

Raises

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

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore.numpy as np
>>> print(np.polyadd([1, 2], [9, 5, 4]))
[9 6 6]