MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Ordering polynomials from highest to lowest order

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25945] Re: [mg25933] Ordering polynomials from highest to lowest order
  • From: BobHanlon at aol.com
  • Date: Fri, 10 Nov 2000 02:40:21 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 11/9/2000 4:31:27 AM, krautschikc at intel.co.jp writes:

>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.
>

With version 4, either set Default Output FormatType to TraditionalForm or 
explicitly convert to TraditionalForm on display.

(z37 = 924r^12 - 2772r^10 + 3150r^8 - 1680r^6 + 420r^4 - 42r^2 + 
        1) // TraditionalForm


Bob Hanlon


  • Prev by Date: LeafCount
  • Next by Date: Re: Bug: Mathematica 4.0 vs. Win2k on ThinkPad
  • Previous by thread: Re: Ordering polynomials from highest to lowest order
  • Next by thread: Re: Ordering polynomials from highest to lowest order