n = 1
for n in range(3):
p = Poly(a[n+1][0:3])
print p
n=n+1
this is my coding. basically, I have a 3 times 3 matrix, I want to assign each row to a polynomial function and then assign each polynomial function to a new array. however, i do not know how to assign the value of p each time executed from the poly function to the array I want.
some body please help me.
the output of p executed looks like
(749.55*x**2) + (6.95*x**1) + (9.68*(10^-4)*x**0)
(1285*x**2) + (7.051*x**1) + (7.375*(10^-4)*x**0)
(1531*x**2) + (6.531*x**1) + (1.04*(10^-3)*x**0)
basically, it will be good enough to build a 3*1 array from the executed p output.
for imformation , my matrix of a looks like this
[['A', 'B', 'C', 'PMIN', 'PMAX'], ['749.55', '6.95', '9.68*(10^-4)', '320', '800'], ['1285', '7.051', '7.375*(10^-4)', '300', '1200'], ['1531', '6.531', '1.04*(10^-3)', '275', '1100']]
[['A' 'B' 'C' 'PMIN' 'PMAX']