Feature #1285
New Fn: make a homogeneous list of ringelem
Description
Proposal: create a new function which takes a ring and a list, and returns a list of RINGELEM belonging to the specified ring.
R ::= QQ[x,y]; L := [x,0,1,y]; HomogList(R, L); [x,0,1,y] -- but all as elements in R -- Perhaps also HomogList(R, [x, LC(x)]); [x,1]
History
#1 Updated by John Abbott almost 5 years ago
What exactly should the function do? What should it be called?
- (A) simplest is to accept
RINGELEM
andINT
andRAT
and map them into the given ring (by calling pseudo-ctor?) - (B) give error if there are @RINGELEM@s which are in the wrong ring?
- (C) other ideas?
define ListOfRingElem(R, L) return [RingElem(R,x) | x in L]; enddefine;
Florian would also like a similar function which eliminates zeroes...