Hi,

> sage: sum(P.monomials())
> x1^2 + x1*x2 + x2^2 + x1*x3 + x2*x3 + x3^2 + x1 + x2 + x3 + 1

Sorry, aparently I didn't carefully read the problem: Whe you gave the
example with X = Y, I thought it was all about creating a copy of Y.

I.e., I noticed too late that Anastasia's problem is to set all
coefficients of the polynomial to 1. Of course, different solutions
may be of different efficiency.

Cheers,
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to