Hello, On Mon, Oct 19, 2009 at 9:13 PM, Pierre <[email protected]> wrote: > > hi, > > i've got some polynomial which happens to be symmetrical. Is there a > quick and easy way to write it in terms of elementary symmetric > functions ?
Currently, it's not the most straightforward: sage: e = SFAElementary(QQ) sage: f = e([2,1,1]).expand(3); f x0^3*x1 + 2*x0^2*x1^2 + x0*x1^3 + x0^3*x2 + 5*x0^2*x1*x2 + 5*x0*x1^2*x2 + x1^3*x2 + 2*x0^2*x2^2 + 5*x0*x1*x2^2 + 2*x1^2*x2^2 + x0*x2^3 + x1*x2^3 sage: sage.libs.symmetrica.all.t_POLYNOM_ELMSYM(f) e[2, 1, 1] Ideally, you should just be able to do "e(f)". --Mike --~--~---------~--~----~------------~-------~--~----~ 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 URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
