[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! On 30 Mai, 14:16, simon.k...@uni-jena.de wrote: ... >   sage: R._has_coerce_map_from(R) > > --- >   TypeError                                 Traceback (most recent > call last) > >   /home/SimonKing/.sage/temp/sage.math.

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread amps
sure, i think it is a bit weird as well. It certainly has behaviour that is unexpected. I think this will cause a lot of confusion, so I think openning a ticket is a good idea. As for multiplying those two polynomials, it seems that what you have said works. I will give it a try. Cheers On 3

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! A little addendum: > For a similar reason, neither f nor g are elements of R. I would agree that it is a little confusing that something is equal to an element of a polynomial ring but is not an element of that ring, or in pure form: sage: R = QQ['x','y'] sage: R1.=QQ[] sage: R2.=QQ[]

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread simon . king
Hi! On 30 Mai, 12:47, amps wrote: ... > TypeError: unsupported operand parent(s) for '*': 'Multivariate > Polynomial Ring in z0 over Rational Field' and 'Multivariate > Polynomial Ring in z1 over Rational Field' > sage: > > > Basically, I want to be able

[sage-support] Re: multivariate polynomial rings and symmetric functions

2009-05-30 Thread amps
Sorry to reply to myself, here is what I really want to do. continuing my last post I will put the entire code again). sage: R=PolynomialRing(QQ,2,'z') sage: z=R.gens() sage: x=tuple([z[0]]) sage: p=SFAPower(QQ) sage: f=p([2,1]).expand(1,alphabet=x) sage: f z0^3 sage: f in R False sage: f==z[0]^