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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)