Post Reply 
help: divide a list into other two
05-20-2015, 06:57 AM
Post: #7
RE: help: divide a list into other two
(05-19-2015 11:08 PM)Didier Lachieze Wrote:  Try this:
Code:
flneg:=remove("x->x>=0,L1");
flpos:=CONCAT(0,remove("x->x<0,L1"));

(05-19-2015 11:15 PM)DrD Wrote:  
(05-19-2015 10:01 PM)Didier Lachieze Wrote:  This should work:

Code:
flneg:=MIN(L1,0); flpos:=MAX(L1,0);
flneg:=remove(0,flneg);
flpos:=remove(0,flpos);

You need to do it in two steps: flneg:=remove(0,MIN(L1,0)) doesn't work.

or this:

flneg:=remove((x)->x≥0,L1)

thank you both!
this tip is very interesting.

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: help: divide a list into other two - salvomic - 05-20-2015 06:57 AM



User(s) browsing this thread: 1 Guest(s)