answered 3 years ago
There is a difference between u and u.trace_polynomial(); the former is a polynomial and the latter is a tuple.
u
u.trace_polynomial()
It seems that what you want is just u.trace_polynomial()[0].
u.trace_polynomial()[0]