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,
2 | No.2 Revision |
(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,