up previous next
RingsOf

list of the rings of an object

Syntax
RingsOf(E: LIST|RINGELEM|IDEAL|MAT|MODULE|MODULEELEM): LIST of RING and TYPE

Description
This function returns the list of the RINGs (or types, if not dependent from a RING) on which the object E is dependent. Similar to RingOf , this function also works on lists and returns the set of ring environments of all entries. ...needless to say that it may be quite slow on big inputs!

Example
/**/  Use R ::= QQ[x,y,z];
/**/  L1 := [x, y];
/**/  L2 := [x, y, 0, 5/4];
/**/  Z3 := NewRingFp(3);
/**/  Use S ::= Z3[a,b];
/**/  RingsOf(L1);
[RingDistrMPolyClean(QQ, 3)]

/**/  RingsOf(L2);
[RingDistrMPolyClean(QQ, 3), INT, RAT]

/**/  RingsOf([L2, a+b]);
[RingDistrMPolyClean(QQ, 3), INT, RAT, RingDistrMPolyClean(FFp(3), 2)]

See Also