Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

(Answer added to make it easier to find it while perusing this site)

Is there anyway to change the ordering of terms so that entering (1-b) displays as (1-b)?

Nope.

Sage insists on displaying symbolic expressions in its "preferred order" :

sage: foo=1-x ; foo
-x + 1

This Very Frequently Asked Question has already caused much tears, wails and teeth gnashing ; the examples quoted by @Max Alexeyev are but a small sample... As pointed out in on of these, acting on this defaul format woul require deep surgery in ginac code, which is a minefield (with rusty, unstable mines...).

Since the problem is stricly cosmetic, this difficult task is deemed low priority...

HTH,

(Answer added to make it easier to find it while perusing this site)

Is there anyway to change the ordering of terms so that entering (1-b) displays as (1-b)?

Nope.

Sage insists on displaying symbolic expressions in its "preferred order" :

sage: foo=1-x ; foo
-x + 1

This Very Frequently Asked Question has already caused much tears, wails and teeth gnashing ; the examples quoted by @Max Max Alexeyev are but a small sample... As pointed out in on one of these, acting on this defaul format woul require deep surgery in ginac code, which is a minefield (with rusty, unstable mines...).

Since the problem is stricly cosmetic, this difficult task is deemed low priority...

HTH,