Post Reply 
How do I get CAS to evaluate a Python-in-CAS function? (Solved)
12-13-2019, 06:18 AM
Post: #2
RE: How do I get CAS to evaluate a Python-in-CAS function?
Remove
HAMMINGCAS():=
BEGIN
and
END;
Then check your function from the shell.
Your loop is incorrect, it should be for ii in range(size(s1)): and you should write s1[ii] and s2[ii] (with 0 starting index, run index:=0 if required)
BTW, this is called hamdist in Xcas.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do I get CAS to evaluate a Python-in-CAS function? - parisse - 12-13-2019 06:18 AM



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