How to reorder terms in a polynomial to follow a specific order.
Hi everyone,
I have code in Sagemath that will give me various polynomials. However, I need these polynomials to be ordered in a specific way. For example, my code will output a polynomial that looks like this:
t^2-t+1
but I need it to be outputted like this:
1-t+t^2.
Is there any way to do this? Thanks, I appreciate the help.
This is answered in https://stackoverflow.com/questions/3...