Re: displaying polynomial starting with highest term
- From: "Daniel Lichtblau" <danl@xxxxxxxxxxx>
- Date: 23 Jun 2005 07:16:39 -0700
Stan Rabinowitz wrote:
> In Mathematica, how can I take a polynomial, like p=1+x+3x^2-5x^6+x^7
> and get it to display starting with the highest term rather than the
> lowest term?
>
> In particular, can I write a function f, so that f[p] would yield
> x^7-5x^6+3x^2+x+1 ?
>
> Or is there some option or preference I can set so that Print will do
> this?
>
> I want to be able to do this so that I can copy the (large) polynomial
> from my Mathematica notebook and paste it in the document
> I am writing, where I want to display the polynomial from highest to
> lowest term.
I found this by searching at
www.wolfram.com/faq
http://support.wolfram.com/mathematica/mathematics/algebra/polynomialsorting.html
One recommendation is to use TraditionalForm. Another approach is to
put a Format rule on Plus. There are other methods that involve Format
rules.
Generally speaking this sort of question better suited for
comp.soft-sys.math.mathematica or support@xxxxxxxxxxxx (That is to say,
those forums are better suited to this sort of question.)
Daniel Lichtblau
Wolfram Research
.
- References:
- displaying polynomial starting with highest term
- From: Stan Rabinowitz
- displaying polynomial starting with highest term
- Prev by Date: displaying polynomial starting with highest term
- Next by Date: Re: Maple's "fd" crash code, and FORTRAN in Maple
- Previous by thread: displaying polynomial starting with highest term
- Index(es):