|Re: Programming with CAS commands (e.g., arcLen)|
Message #6 Posted by Han on 1 Oct 2013, 2:44 p.m.,
in response to message #5 by Helge Gabert
I tried everything I could think of.
Ideally you should be able to enter lower case "X", i.e., x^3, into the variable on the INPUT screen, but at runtime the parser doesn't let you.
I have found that pretty much anytime I need to do anything with symbolic expressions, I end up have to use expr(" blah "); And even this can break the calculator. For example,
F0:=expr("'X-F1(X)/(" + diff(F1(X),X) + "')");
works fine within a program. However,
LOCAL QQ, RR, SS;
QQ:=""; // this will enable you to enter a string, now
CAS.arcLen(EXPR("'"+QQ+"'"),RR,SS); // warmstarts even without RR,SS at end
causes a warmstart on my actual calculator. I can type: X^2-5 for QQ and it shows up properly during the input screen. But it seems to fail once inputs are entered. In sum, working with built-in variables _usually_ works. Most of the time, anything with CAS seems broken. Then again, I have yet to consult the manual regarding CAS operations (assuming I can find it in there).
Edited: 1 Oct 2013, 2:47 p.m.