numpoly.ndpoly.coefficients#
- property ndpoly.coefficients: List[ndarray]#
Polynomial coefficients.
Together with exponents defines the polynomial form.
- Example:
>>> q0, q1 = numpoly.variable(2) >>> poly = numpoly.polynomial([2*q0**4, -3*q1**2+14]) >>> poly polynomial([2*q0**4, -3*q1**2+14]) >>> numpy.array(poly.coefficients) array([[ 0, 14], [ 0, -3], [ 2, 0]])