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:41 PM (This post was last modified: 03-12-2018 10:43 PM by compsystems.)
Post: #6
RE: to get a program to return EXPR("%{1,2,3,3,4%}") as the set [1,2,3,4]
PHP Code:
EXPORT exprprg1()
BEGIN
return expr("%{ a, a, b, c, c, d, ee, ee, ee,f %}");
END

exprprg1() returns "Error: Syntax Error" =(

another solution is to work on the CAS environment, you avoid being added CAS( )

PHP Code:
#cas
exprprg2():=
BEGIN
  
return expr("%{ a, a, b, c, c, d, ee, ee, ee,f %}");
END;
#end 

exprprg2() returns set[a,b,c,d,ee,f]
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] - compsystems - 03-12-2018 10:41 PM



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