Linked Questions

22 votes
4 answers
4k views

How to keep Collect[] result in order?

For example, Collect[(1 + x + Cos[s] x^2)^3, x] gives the result ...
matheorem's user avatar
  • 17.1k
21 votes
6 answers
2k views

On generalizing Partition[] (with offsets) to sublists of unequal length

The usual Partition[] function is a very handy little thing: ...
J. M.'s eventual burnout's user avatar
19 votes
2 answers
5k views

Why does Mathematica order polynomial forms in reverse from traditional order?

I could very well be missing something obvious, but this has always bugged me with Mathematica and I don't know why it does it or how to fix it. If I enter any polynomial, say, x^2 + x - 1 for ...
Brendan's user avatar
  • 535
13 votes
2 answers
2k views

Displaying a series obtained by evaluating a Taylor series

Description of problem I would like to use Mathematica to display the series obtained by substituting a value for $x$ in a Taylor series expansion. The terms of the series will be rational numbers, ...
Michael Wijaya's user avatar
18 votes
1 answer
1k views

How to put terms in lexicographic order?

Is it possible to have terms like f[w-c] be formatted like this and not like f[-c + w]. I use Mathematica (7.0) for simplifying ...
epsilonhalbe's user avatar
11 votes
3 answers
1k views

How do I get a two-term polynomial with a leading negative sign to display in the correct (i.e. textbook) order?

The first three expressions evaluate as expected and the polynomial is displayed in what I would call "textbook" form. The last expression, however, switches the order of terms. Mathematica employs ...
RandomBits's user avatar
3 votes
2 answers
1k views

Stopping Mathematica from reordering expressions [duplicate]

I want Mathemtica to stop manipulating my polynomials! I mean, I want the output of Print[3 x + 5 + x^2] to be just $3x+5+x^2$, not $5+3x+x^2$ as Mathematica ...
Behzad's user avatar
  • 575
3 votes
3 answers
426 views

HoldForm: how does it interact with nested evaluations?

Here's an example to illustrate the issue I'm having. right = 8 - y; left = y^2 + 6; integrand = HoldForm[Evaluate[right]] - HoldForm[Evaluate[left]] (I ...
JohnD's user avatar
  • 3,301
2 votes
1 answer
3k views

How to order a polynomial in descending powers of x? [duplicate]

This should be very simple, even silly If I ask this mathematica Expand [(x + 1) (x + 2) (x + 3)] Mathematica delivers me well ...
Fernando Silva's user avatar
8 votes
1 answer
841 views

How to order terms in a polynomial in two variables negative lexicographically

I have several polynomials in variables p and q, each term in which has total degree n, a constant. I would like to output the polynomial in increasing powers of p (and hence decreasing powers of q), ...
Simon's user avatar
  • 1,415
1 vote
2 answers
104 views

The ordering problem of multivariate polynomials

This is the result of Taylor expansion of a binary function ...
A little mouse on the pampas's user avatar
3 votes
0 answers
77 views

How to simplify a polynomial and get the results in the order that I want? [duplicate]

How to simplify a polynomial in a order that I want? Assume that I have a polynomial here, for example, $a^3 b^4 c^2$, the order of symbels is the dictionary order, $a>b>c$. But what if I want ...
qfzklm's user avatar
  • 171
1 vote
0 answers
40 views

Yet Another Expression Ordering Question (not polynomial but transcendental)

Forcing a particular ordering of terms, i.e. overriding Mathematica's, is a recurrent issue, especially for users working within particular domains where there is a particular ordering tradition or ...
Julian Moore's user avatar
  • 2,560