Yeah, I'm doing something like that but it is lame and bugprone. The denominator depends on the root system for the double affine Hecke algebra. Looking at the high powers is hard on the eyes.
--Mark > The workaround Andrew and I used in the Iwahori-Hecke algebra was to use > a new variable v and passed in q=v^2. Although this led to a minor panic > when I couldn't get the output to line up with references (everything was > squared). > > Best, > Travis > > > On Tuesday, April 15, 2014 10:19:25 AM UTC-7, Mark Shimozono wrote: > > > > Nicolas, > > > > I find myself in legitimate need of fractional powers of a variable q, > > which sage doesn't seem to like. > > > > Is there a reasonable workaround? > > > > I thought about always raising to an extra power (the maximum denominator > > is > > known) but I don't know how to mangle the output to put the fraction back > > in. > > I assume it is dangerous to mess with _repr_ for a polynomial > > and the code is assuming that the user is allowed to specify their own ring > > with a q in it. > > > > --Mark > > > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-combinat-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-combinat-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-combinat-devel@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-combinat-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-combinat-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-combinat-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-combinat-devel. For more options, visit https://groups.google.com/d/optout.