Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4358 > unrolled thread

Order of polynomial terms

Started bypaulvonhippel at yahoo <paulvonhippel@yahoo.com>
First post2011-08-13 10:48 +0000
Last post2011-08-14 12:17 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Order of polynomial terms paulvonhippel at yahoo <paulvonhippel@yahoo.com> - 2011-08-13 10:48 +0000
    Re: Order of polynomial terms Peter Breitfeld <phbrf@t-online.de> - 2011-08-14 12:17 +0000

#4358 — Order of polynomial terms

Frompaulvonhippel at yahoo <paulvonhippel@yahoo.com>
Date2011-08-13 10:48 +0000
SubjectOrder of polynomial terms
Message-ID<j25kqp$oti$1@smc.vnet.net>
By default Mathematica displays polynomials with the lowest degree
first -- e.g.,
  -1 + n
For purposes of display, I'd like to reorder the polynomial
conventionally, with the highest degree first -- e.g.,
 n - 1
Anyone know a convenient way to do this? I was using TraditionalForm
with great satisfaction but that option's out now because
TraditionalForm is incompatible with something else I'm using
(Symbolize).

[toc] | [next] | [standalone]


#4387

FromPeter Breitfeld <phbrf@t-online.de>
Date2011-08-14 12:17 +0000
Message-ID<j28ec5$3dd$1@smc.vnet.net>
In reply to#4358
You may use PolynomialForm and set TraditionalOrder to True:

SetOptions[PolynomialForm,TraditionalOrder->True]

expr=x^2+3x+7
expr//PolynomialForm

But beware, PolynomialForm works like MatrixForm, so

expr=x^2+3x+7//PolynomialForm ----> x^2+3x+7
Then
13 expr //Expand will not expand, but

13 expr[[1]] //Expand//PolynomialForm ----> 13x^2+39x+91

or better always use like this, as you do with MatrixForm, Columm etc.

(expr= x^2+3x+7)//PolynomialForm


paulvonhippel at yahoo wrote:

> By default Mathematica displays polynomials with the lowest degree
> first -- e.g.,
>   -1 + n
> For purposes of display, I'd like to reorder the polynomial
> conventionally, with the highest degree first -- e.g.,
>  n - 1
> Anyone know a convenient way to do this? I was using TraditionalForm
> with great satisfaction but that option's out now because
> TraditionalForm is incompatible with something else I'm using
> (Symbolize).
>

-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web