Ordering polynomials from highest to lowest order
- To: mathgroup at smc.vnet.net
- Subject: [mg25933] Ordering polynomials from highest to lowest order
- From: "Krautschik, Chris G" <krautschikc at intel.co.jp>
- Date: Thu, 9 Nov 2000 03:04:29 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Dear Mathgroup, I have a module that generates the first 37 Zernike polynomials. The output looks something like this: zernike[37] = 1 - 42r^2 +420r^4 -1680r^6 +3150r^8 -2772r^10 +924r^12 I would like the ordering of all my polynomials to go from highest order to lowest. So the output I like to have is the following: z37= 924r^12 - 2772r^10 + 3150r^8 -1680r^6 +420r^4 - 42r^2 +1 Perhaps the collect command can be used to accomplish this but I am not sure how since collect seems to order from lowest to highest order. Thanks, Chris