Re: Ordering polynomials from highest to lowest order
- To: mathgroup at smc.vnet.net
- Subject: [mg25937] Re: Ordering polynomials from highest to lowest order
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 10 Nov 2000 02:40:16 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <8udmqp$eji@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, perherps 1 - 42r^2 +420r^4 -1680r^6 +3150r^8 -2772r^10 +924r^12 //TraditionalForm will do it ? Regards Jens "Krautschik, Chris G" wrote: > > 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