[GAP Forum] op and nops commands?

tkohl at math.bu.edu tkohl at math.bu.edu
Tue Dec 3 04:17:11 GMT 2019


Dear forum members.

In Maple, there are commands nops() and op() which allow
one to 'pick apart' expressions, such as polynomials for example,

i.e. nops(expr) is the number of terms of expr
     op(1,expr) is the first term of expr

although how nops() evaluates the number of terms is a bit subtle.

Anyway, I was just wondering if GAP has similar commands?

I am trying to sort (and pull apart) words in fp groups which are,
of course, polynomials.

Thanks.

 	-T



More information about the Forum mailing list