Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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