It seems that I am having trouble with this separation of CAS and non-CAS modes with respect to programming. For example, if I use:
seq(x^k,k,8,4,-1)
in CAS mode, I get
[ x^8 x^7 x^6 x^5 x^4 ]
as expected. But if I type this into a program:
EXPORT EXAMPLE()
BEGIN
seq(2^k,k,8,4,-1);
END;
I get a syntax error with the cursor on the k. If I add LOCAL k; then I get the wrong sequence of [1, 1, 1, 1] -- though I could see what went wrong in this case. Even adding in "CAS." at the start of a command does not fix the issues. Just about any sort of symbolic manipulation within a program seems difficult to do. What am I missing? It seems that pretty much anything I do symbolically on the CAS screen does not work very well in a program. While
CAS.expr("seq(2^k,k,8,4,-1)");
seems to work, I get EXPR([256 128 64 32 16]) which is not the same as [256 128 64 32 16] (without the EXPR()). Then there is
CAS.expr("seq(x^k,k,8,4,-1)");
which, when embedded in a program, does not work... and on my emulator, it crashes so badly that the program closes itself out.
Edit: is the program editor's parser different from the home screen parser and/or the CAS parser? my trial and error sessions seem to suggest yes.
Second Edit: I did not try the above on the actual calculator.
Edited: 1 Oct 2013, 10:58 p.m. after one or more responses were posted