Ask Your Question
0

Substituting variables in instances of elements of SymmetricFunctions of polynomial rings

asked 1 year ago

yeetcode gravatar image

updated 1 year ago

I am working with

R.<q,t> = PolynomialRing(QQ)

Q = R.fraction_field()

Sym = SymmetricFunctions(Q)

following which I declare Ht = Sym.macdonald().Ht(). I would now like to evaluate Ht for different relations between q, t. As an example, I would like to be able to compute Ht[2,1,1] with the substitution q -> q and t -> 1.

Preview: (hide)

Comments

I mean being able to evaluate something like Ht[2,1,1] but with the substitution q=t or t=1.

yeetcode gravatar imageyeetcode ( 1 year ago )

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

Max Alekseyev gravatar image

updated 1 year ago

Is this what you want?

Ht = Sym.macdonald().Ht()
Ht_2 = Sym.macdonald(q=t, t=1).Ht()

f = q*Ht[3,2,1] + t*Ht[2,1,1]
print( Ht_2(f) )
Preview: (hide)
link

Comments

Seems to be doing the job quite alright. I find it unintuitive and restrictive that the substitution has to be made into Sym.macdonald(), but given that the list of substitutions I'm interested in is very small, I can indeed create a fixed few instances and be happy with it. Thanks! How (if at all) can I make a feature request for element-wise substitution?

yeetcode gravatar imageyeetcode ( 1 year ago )

You can submit a feature request at https://github.com/sagemath/sage/issues

Max Alekseyev gravatar imageMax Alekseyev ( 1 year 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: 1 year ago

Seen: 247 times

Last updated: Mar 07 '24