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
 Carlos295pz Senior Member Posts: 365 Joined: Sep 2015
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
 « Next Oldest | Next Newest »

 Messages In This Thread to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - John P - 03-12-2018, 07:47 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - Carlos295pz - 03-12-2018, 09:44 PM 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:20 PM 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 RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - compsystems - 03-12-2018, 10:01 PM 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 RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - compsystems - 03-12-2018, 10:41 PM 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:49 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - ggauny@live.fr - 03-15-2018, 12:37 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - Carlos295pz - 03-15-2018, 01:11 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - Han - 03-15-2018, 09:40 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - ggauny@live.fr - 03-16-2018, 08:30 PM RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4] - webmasterpdx - 03-18-2018, 11:29 AM

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