> # loop over
> diff_mu = {}
> curr_mons = mu.monomials()
> while len(curr_mons) > 0:
> mon = curr_mons.pop()
> deg = mon.degrees()
> diff_mu[deg] = True
> for x in xgens:
> if mon.degree(x) > 0:
> curr_mons.append(mon / x)
> # this gives a FractionField element!!!
Hi, try
mon//x
(i.e. floordiv)
Cheers,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [email protected]
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---