Yes. Sorry for the ambiguity made. degree(pi) gives 1 but degree(pi,x) gives 0. Anyway what you are expecting from degree(pi)? Is it just 0 or ComputationFailed: degree(pi) failed without generators