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:45 PM
Post: #7
RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4]
(03-12-2018 10:20 PM)John P Wrote:  Thanks Carlos295pz.
It works now but I had to use, in the prgm. body, CAS(CAS(l(1))) where l(1)="%{1,2,3,3,4%}". Why CAS inside the CAS?

Cheers,

There is a topic of Home/CAS interaction.

Only with data

CAS("%{1,2,3,3,4%}") → [1,2,3,4] //OK
CAS("%{1,2,3,"+"3,4%}") → "%{1,2,3,3,4%}" //You need to send the pure chain, not an operation that loses the first evaluation to the chain

CAS(EVAL("%{1,2,3,"+"3,4%}")) → [1,2,3,4] //OK, string was created before being sent as a parameter


With variables

LOCAL lr="%{1,2,3,3,4%}",ls={"%{1,2,3,3,4%}"};
CAS(lr) → "%{1,2,3,3,4%}"
CAS(ls(1)) → "%{1,2,3,3,4%}"
CAS(EVAL(lr)) → [1,2,3,4] //OK, string extracted from lr before the parameter pass
CAS(EVAL(ls(1))) → [1,2,3,4] //OK, string extracted from ls(1) before the parameter pass

I have written about Home/CAS Interaction, but I can only create it in Spanish.

Viga C | TD | FB
Visit this user's website 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] - Carlos295pz - 03-12-2018 10:45 PM



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