Post Reply 
to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4]
03-12-2018, 10:26 PM
Post: #5
RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4]
(03-12-2018 10:01 PM)compsystems Wrote:  expr is a CAS command =)

expr("%{1,2,3,3,4%}") returns
[1,2,3,4] (History) =(.
returns set[1,2,3,4] =) (entryline or textbook flag: off)

expr("%{ a, a, b, c, c, d, ee, ee, ee,f %}") returns
[a,b,c,d,ee,f] (History) =(
returns
set[a,b,c,d,ee,f] =) (entryline or textbook flag: off)

For [hp-prime team]
I think that the history should be conversed the prefix SET[], to differentiate it from arrays, lists, vectors , tables, etc

expr("%{ a, a, b, c, c, d, ee, ee, ee,f %}") → set[a,b,c,d,ee,f]

Thanks compsystems,
If I understand your post correctly you did the EXPR i the history of CAS. I need it to work inside the body of a program. It works for now, see the response to Carlos295pz above.

Cheers
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - John P - 03-12-2018 10:26 PM



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