CAS questions: IF...THEN and length() function
|
12-01-2015, 09:36 PM
Post: #1
|
|||
|
|||
CAS questions: IF...THEN and length() function
I've been writing some simple CAS programs in CAS mode and I've encountered a few issues. The first is to do with return:
Code: #cas The second issue (rather obscure) is to do with the length() function. length("abc") returns 3, which is fine. length(x+2=y) (note: expressions in XCAS seem to be stored as lists) returns 2, although it has three elements. More generally: does anyone know where I can find lots of CAS programs written for the Prime? I like to learn a programming language by looking at programs that other people have already written! Nigel (UK) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
CAS questions: IF...THEN and length() function - Nigel (UK) - 12-01-2015 09:36 PM
RE: CAS questions: IF...THEN and length() function - Han - 12-01-2015, 10:00 PM
RE: CAS questions: IF...THEN and length() function - Nigel (UK) - 12-01-2015, 10:15 PM
RE: CAS questions: IF...THEN and length() function - Han - 12-01-2015, 10:24 PM
RE: CAS questions: IF...THEN and length() function - parisse - 12-02-2015, 01:54 PM
RE: CAS questions: IF...THEN and length() function - Han - 12-02-2015, 02:01 PM
|
User(s) browsing this thread: 1 Guest(s)