On Sat, Jan 19, 2013 at 07:59:18PM +0300, David Ketcheson wrote: > > Thanks, Sergiu. I don't use isympy and I can't find any documentation of > these options or how to use them directly with the print command. Do you > know where any documentation is, or do you have an example using print?
I am not sure I can point you to an exact place in the docs; my
solution often consists in looking at the concerned code directly.
For example, a big part of printing can be found under
sympy/printing/.
As for your question, you may consider doing something like this:
>>> from sympy import *
>>> x = Symbol("x")
>>> x
x
>>> pprint(x**2 + x)
2
x + x
>>> pprint(x**2 + x, order='rev-lex')
2
x + x
>>>
From what I know, the supported monomial orders are exactly the same
as the ones listed in the excerpt of the source of isympy I cited in
my previous message.
Sergiu
pgpJ2oFUL4xvg.pgp
Description: PGP signature
