Hello,
On Wed, Jan 16, 2013 at 04:09:07AM -0800, David Ketcheson wrote:
>
> What options are available for specifying the order in which terms are
> printed? If I do
[...]
> I think I know what the logic here is, but I'd like to order terms by
> increasing order of derivative (or increasing powers of h). How can I do
> that?
Try using the -o option of isympy:
-o ORDER, --order ORDER
Setup the ordering of terms for printing. The default is lex, which
orders terms lexicographically (e.g., x**2 + x + 1). You can choose
other orderings, such as rev-lex, which will use reverse
lexicographic ordering (e.g., 1 + x + x**2):
$isympy -o rev-lex
ORDER must be one of 'lex', 'rev-lex', 'grlex', 'rev-grlex',
'grevlex', 'rev-grevlex', 'old', or 'none'.
I believe you can also specify the ordering directly when invoking the
printing functions, which can be useful if you are not using isympy.
Sergiu