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


Groups > comp.soft-sys.math.mathematica > #4387

Re: Order of polynomial terms

From Peter Breitfeld <phbrf@t-online.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Order of polynomial terms
Date 2011-08-14 12:17 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j28ec5$3dd$1@smc.vnet.net> (permalink)
References <j25kqp$oti$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web