Is it possible to change the default ordering of added terms?
sage seems to have a default ordering for terms added together in an expression. E.g. if I enter
(1-b)
it will be displayed as
-(b -1)
I.e. the variable is always first and the number always second. While -(b - 1) is correct, in some contexts (1-b) is clearer and more conventional. Is there anyway to change the ordering of terms so that entering (1-b) displays as (1-b)?
thanks
How
b
is defined?b = var("b")
Check these out:
https://ask.sagemath.org/question/106...
https://ask.sagemath.org/question/384...