On Fri, 3 Apr 2015, Guillaume CONNAN wrote:

it's to do something like ( P1 * P2 | a ) & P3 + 2

Can you give a concrete example of "P1 * P2 | a"?

If you want to manipulate all coefficients of a polynomial, you can do it at least like this:

P.<a>=ZZ[]
P1=10*a^2-7*a+3
P2=sum([a^i*(P1[i] | 42) for i in range(0,3)])
P2

But I'm quite sure that there is some nicer way.

--
Jori Mäntysalo

Reply via email to