Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

Substitution in Expression of Symmetric Functions over Polynomial Ring

asked 4 years ago

RaymondChou gravatar image

Hi everyone! So I'm working in the ring of symmetric functions over a polynomial ring, say Q[q], and I have an expression of the form

q2s2,1+(q1)s1,1,1

I want to perform the substitution q=q+1 in this expression, but all of the usual methods (subs, substitute, etc.) give me an error. Does anyone know how to do this?

Thanks in advance!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

FrédéricC gravatar image

Like this

sage: q=polygen(QQ,'q')                                                         
sage: s=SymmetricFunctions(q.parent()).s()                                      
sage: f=q*s([4])+(q-1)*s([3,2])                                                 
sage: f.map_coefficients(lambda q:q+1)                                          
q*s[3, 2] + (q+1)*s[4]
Preview: (hide)
link

Comments

Thank you so much!

RaymondChou gravatar imageRaymondChou ( 4 years ago )
2

In f.map_coefficients(lambda q:q+1), the parameter q has nothing to do with the variable q defined above. One should better use f.substitute({q:q+1}) for replacing the defined variable q with q+1.

Max Alekseyev gravatar imageMax Alekseyev ( 4 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 414 times

Last updated: Apr 06 '21