# [Maxima] How do you order terms this way (My E-mail in Plain Text)

Richard Hennessy rvh2007 at comcast.net
Mon Apr 21 15:35:22 CDT 2008

```That sounds good.  My PC does its math in binary, but I don't care because it converts the final answer to decimal.  As a programmer I usually have to be concerned with the presentation layer, but the behind the scenes behavior is still binary and I have to keep that in mind.  That is why I like wxMaxima.  The presentation layer is a whole lot better than xMaxima.

Maybe this feature request should be directed towards the wxMaxima programmers.  Maxima is great the way it is.

Rich

------------Original Message------------
From: "Richard Fateman" <fateman at cs.berkeley.edu>
To: "'Richard Hennessy'" <rvh2007 at comcast.net>
Cc: maxima at math.utexas.edu
Date: Mon, Apr-21-2008 4:23 PM
Subject: RE: [Maxima] How do you order terms this way (My E-mail in Plain Text)

If you do not like the arrangement from rat, what you could do is compute a
full collection of monomials
by using  p= ratexpand().  Then if it is of length 100, create an array A of
size 100, and set A[i]=part(p,i).

Then you can print A[i=1..100] in any order you can compute.

Asking maxima to compute with some order that you prefer is unlikely to work
perfectly, because maxima orders
terms in a way that is consistent with the way it computes.

RJF

> -----Original Message-----
> From: maxima-bounces at math.utexas.edu
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Richard Hennessy
> Sent: Monday, April 21, 2008 9:02 AM
> To: Maxima List
> Subject: Re: [Maxima] How do you order terms this way (My
> E-mail in Plain Text)
>
> Rat does not work.  I would like to comment on the "right"
> way to display a polynomial in more than one variable.  There
> is no right way, there is however a personal preference that
> some people have.  I don't always want my results in term
> degree order, but there should be a way to do it.  I like to
> customize my applications to my personal preferences.  But I
> do not expect others to conform to my preferences so this
> option should be configurable through a package perhaps
> somewhat like the format package.
>
> Richard Hennessy
>
>
>
> ------------Original Message------------
> From: "Richard Fateman" <fateman at cs.berkeley.edu>
> To: "'Richard Hennessy'" <rvh2007 at comcast.net>
> Cc: maxima at math.utexas.edu
> Date: Sun, Apr-20-2008 9:50 PM
> Subject: RE: [Maxima] How do you order terms this way
> try rat(%,y,x);
>
> if that doesn't work for you, then I suspect the simplest alternative
> is that you try to accomodate your own notions of what the
> right order is to what maxima provides.
>
> Good luck.
>
>
>
>
>
> From: maxima-bounces at math.utexas.edu
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of Richard Hennessy
> Sent: Sunday, April 20, 2008 6:08 PM
> To: Maxima List
> Subject: [Maxima] How do you order terms this way
>
>
> If I have the quadratic surface in x and y
>
> a*x^2 +b*y^2+d*x*y+e*x+f*y +g = 0
>
> I want Maxima to print out this formula in the order above
> but when I enter it it changes it to
>
> b*y^2+d*x*y+f*y+a*x^2+e*x+g=0
>
> I want the terms in order of degree so that x^n*y^m would
> come before x^(n-1)*y^m and also before x^n*y^(m-1) etc...
>
> Is there a way?  I can't find a function for that in the help.
>
> Richard Hennessy
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

```