ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 26 Apr 2019 18:38:48 +0200Scaling and tensor product for Lie Groupshttps://ask.sagemath.org/question/46366/scaling-and-tensor-product-for-lie-groups/I am new to any coding. I want to compute a tensor product of several scaled weights of a lie group and I can't get this to work.
Looking at the sage math pages for Weyl Character Rings, I figured out how to do tensor product decompositions, e.g. if you put in
A2 = WeylCharacterRing("A3",style="coroots")
A2(1,1,1)*A2(1,1,0)*A2(1,1,0)
then it gives you the decomposition of the above tensor product (where the weights (1,1,1), etc., are written in the fundamental weight basis).
I want to compute something like
A2(2,2,2)*A2(2,2,0)*A2(2,2,0)
where each of the weights is scaled by 2, but without having to manually scale the weights (so I can implement this in some more general code).
You can scale weights by entering e.g. A2(1,1,1).scale(2), and this gives you A2(2,2,2), BUT this only works for me when I add .ambient() to the end of the definition of A2 above. HOWEVER after I add .ambient(), the tensor products no longer work! (If I try to do a tensor product after adding the .ambient(), it just adds the vectors componentwise...)
If anyone is familiar with how to do this sort of thing, your help would be greatly appreciated! Thanks.anonFri, 26 Apr 2019 18:38:48 +0200https://ask.sagemath.org/question/46366/