Opened 7 years ago

Last modified 3 years ago

#9558 new enhancement

Make `is_symmetric` method for polynomials or where else useful

Reported by: kcrisman Owned by: sage-combinat
Priority: minor Milestone: sage-6.4
Component: combinatorics Keywords:
Cc: sage-combinat Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

This is a little vague - should it also be for SR, not just polynomial rings? But it seems like a reasonable request on sage-support:

Hi, 
I would like to know if there are any function that says if a 
polynomial is or not symmetric (like: 'is_symmetric'), so Mathematica 
have this kind of function. 
http://en.wikipedia.org/wiki/Symmetric_polynomial 
Thanks! 

Change History (5)

comment:1 Changed 7 years ago by jbandlow

  • Cc sage-combinat added
  • Component changed from algebra to combinatorics
  • Owner changed from AlexGhitza to sage-combinat

The following works (at least in sage-4.4.4):

sage: R.<x,y,z> = QQ[]
sage: SF = SymmetricFunctions(QQ)
sage: SF.from_polynomial(x^2 + y^2 + z^2)
m[2]
sage: SF.from_polynomial(x^2 + y^2)
...
ValueError: x^2 + y^2 is not a symmetric polynomial

If someone wants to make a top level function like that suggested in the initial post, a design discussion should probably happen on sage.devel or sage.combinat.devel first.

I'm changing the component to combinatorics since that's where tickets related to symmetric functions usually live.

comment:2 Changed 4 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 4 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 3 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 3 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.