sorting polynomials by the degree of certain terms

*To*: mathgroup at smc.vnet.net*Subject*: [mg49202] sorting polynomials by the degree of certain terms*From*: hessing at gmail.com (David Hessing)*Date*: Wed, 7 Jul 2004 01:42:41 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Hi, I dealing with huge polynomials (around 50,000 terms). Each term may contain some real coefficient, followed by any combination of 11 variables, each of which may be raised to some some power. However, I'm interested in sorting the polynomial according to the sum of the degrees of only 2 of the variables. In other words, in the sorted expression, the first terms would be those where the two variables do not appear (the sum of their powers is zero). The next terms would be the terms where one of the two variables appeared raised to the power 1. The next terms would be the terms where both variables appeared with power 1, or just one of the variables appeared with power 2. And so on. I've played with passing the expression to the Sort function, along with a defined sorting function, but I can't get it to work. Any help would be greatly appreciated. -David

**Follow-Ups**:**Re: sorting polynomials by the degree of certain terms***From:*Andrzej Kozlowski <akoz@mimuw.edu.pl>

**Re: sorting polynomials by the degree of certain terms***From:*Daniel Lichtblau <danl@wolfram.com>

**How to plot the surface of revolution graphics**

**Re: If and openwrite and openappend**

**AW: factorial analysis**

**Re: sorting polynomials by the degree of certain terms**