Post Reply 
Suggestion for EXECON.
12-19-2014, 10:47 PM
Post: #24
RE: Suggestion for EXECON.
Hello,

Here is my very crude prgm. CASEXECON that works in CAS and with symbolics. The expression must be a string and the second argument must be a list. It works with lists entered as list of lists or as a list of store variables that contain lists.

EXPORT CASEXECON(str_expr,lst)
//Argument "str_expr" must be a strings and
//all lists must be in curly brackets.
//example: CASEXECON("(&2-&1*&2)",{{1,2},{3,4}}
//or CASEXECON("(&2-&1*&2)",{l1,l2}).
BEGIN
local out;
out:=EXECON("CAS("""+str_expr+""")",lst);
IF size(out)==1 THEN
out:=out(1);
END;
return(out);

END;

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


Messages In This Thread
Suggestion for EXECON. - John P - 12-14-2014, 03:59 AM
RE: Sugdestion for EXECON. - Snorre - 12-14-2014, 05:28 PM
RE: Sugdestion for EXECON. - John P - 12-14-2014, 09:12 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 12:13 AM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 10:57 AM
RE: Sugdestion for EXECON. - Snorre - 12-15-2014, 12:31 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 12:57 PM
RE: Sugdestion for EXECON. - DrD - 12-15-2014, 12:36 PM
RE: Sugdestion for EXECON. - John P - 12-15-2014, 01:15 PM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 07:55 AM
RE: Sugdestion for EXECON. - parisse - 12-16-2014, 08:01 AM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 09:01 AM
RE: Sugdestion for EXECON. - parisse - 12-16-2014, 09:48 AM
RE: Sugdestion for EXECON. - John P - 12-16-2014, 09:36 PM
RE: Sugdestion for EXECON. - parisse - 12-17-2014, 06:54 AM
RE: Sugdestion for EXECON. - Snorre - 12-17-2014, 12:51 PM
RE: Sugdestion for EXECON. - John P - 12-17-2014, 06:05 PM
RE: Sugdestion for EXECON. - parisse - 12-17-2014, 07:14 PM
RE: Suggestion for EXECON. - John P - 12-19-2014 10:47 PM



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