Maxima Function
nc_degree (p)
Returns the degree of a noncommutative polynomial p. See declare_weights.
declare_weights