Post Reply 
EEX Problem with CAS Programs
06-23-2014, 12:36 AM
Post: #1
EEX Problem with CAS Programs
Drove me nuts:

My CAS program wouldn't compile for some reason; I checked all the lines of code, re-checked, still didn't work. Only after isolating each expression, I became clear that
in "1E-3", "E" apparently cannot be typed in with the EEX key.

Instead, the user needs to erase the funny looking "E" (from EEX) and replace it in the program with the "E" from the letter keys. Unbelievable.

(This is not a problem with non-CAS programs).
Find all posts by this user
Quote this message in a reply
06-23-2014, 04:12 AM
Post: #2
RE: EEX Problem with CAS Programs
(06-23-2014 12:36 AM)Helge Gabert Wrote:  Drove me nuts:

My CAS program wouldn't compile for some reason; I checked all the lines of code, re-checked, still didn't work. Only after isolating each expression, I became clear that
in "1E-3", "E" apparently cannot be typed in with the EEX key.

Instead, the user needs to erase the funny looking "E" (from EEX) and replace it in the program with the "E" from the letter keys. Unbelievable.

(This is not a problem with non-CAS programs).

Correct: A small "E" exponent symbol immediately followed by a negative sign cannot be parsed correctly by CAS. This is a known bug (mentioned in this forum before). Example:

1. Home
2. EEX [+/-] 3 (don't press Enter)
3. CAS
4. Enter --> error

As you noticed, the workaround is to use an ordinary "E" or "e" instead of EEX in CAS programs, CAS formulae in the Spreadsheet, etc. The EEX key can be used in the CAS itself, however, because in CAS it types an "e", not the special small "E".

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
06-23-2014, 09:23 PM
Post: #3
RE: EEX Problem with CAS Programs
Good to know.

I also don't like the fact that after compilation, certain CAS program lines with branches or loops get saved in one line in the editor (makes for long lines with scrolling to the right of the screen, which gets cumbersome). This is also not the case for non-CAS programs, which can be edited just the same way they were compiled the first time.
Find all posts by this user
Quote this message in a reply
06-23-2014, 09:32 PM
Post: #4
RE: EEX Problem with CAS Programs
An actual debugger for CAS functions would be nice, too. When copying and pasting certain Greek characters from my text editor it doesn't always accept every symbol.
Find all posts by this user
Quote this message in a reply
06-23-2014, 09:56 PM
Post: #5
RE: EEX Problem with CAS Programs
That's right, there is no debug or run soft key!
Find all posts by this user
Quote this message in a reply
06-23-2014, 10:25 PM
Post: #6
RE: EEX Problem with CAS Programs
(06-23-2014 09:32 PM)Rich Wrote:  An actual debugger for CAS functions would be nice, too. When copying and pasting certain Greek characters from my text editor it doesn't always accept every symbol.

What happens if you put debug(); in a cas function?

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
06-23-2014, 10:45 PM (This post was last modified: 06-23-2014 10:46 PM by Rich.)
Post: #7
RE: EEX Problem with CAS Programs
When entering in debug(); at the end of a cas function, i do not get any extra results when running it, though if i enter debug(abcd(h(s))) where abcd is the name of my CAS function i get this nifty screen... not sure how to proceed on it. Pressing most keys, such as F2 or F6 on the real keyboard or the prime's keypad doesn't seem to effect it.

   
Find all posts by this user
Quote this message in a reply
06-23-2014, 11:09 PM (This post was last modified: 06-23-2014 11:10 PM by eried.)
Post: #8
RE: EEX Problem with CAS Programs
(06-23-2014 10:45 PM)Rich Wrote:  When entering in debug(); at the end of a cas function, i do not get any extra results when running it, though if i enter debug(abcd(h(s))) where abcd is the name of my CAS function i get this nifty screen... not sure how to proceed on it. Pressing most keys, such as F2 or F6 on the real keyboard or the prime's keypad doesn't seem to effect it.

Use debug(); before the line you want to debug, or at the start (example after BEGIN). The Debug(----) looks interesting :O but I don't know what it is that.

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
06-23-2014, 11:24 PM (This post was last modified: 06-23-2014 11:24 PM by Rich.)
Post: #9
RE: EEX Problem with CAS Programs
If I put debug(); before a specific line i get almost the same screen, which maybe this means something helpful. If put debug(); after BEGIN, i get a syntax error.

Though the output appears to have errors, i know that it doesn't since it works correctly when calling the function from the CAS screen. The virtual calculator crashes after this Sad

Its OK though, i have my finals this week and I can lay my HP prime out to pasture for a month or two before next semester... : )

Thank you

   
Find all posts by this user
Quote this message in a reply
06-26-2014, 04:13 PM
Post: #10
RE: EEX Problem with CAS Programs
Quote:Use debug(); before the line you want to debug, or at the start (example after BEGIN). The Debug(----) looks interesting :O but I don't know what it is that.

So, I suppose there is a CAS debug, after fiddling around with debug(function_name(a,b)) in the CAS command line, the screen you get allows you to step into the CAS function one step at a time. Pressing up arrow moves it forward. The status of the variables are described on the bottom.

I am not sure if this is a feature or not. There is no description of it in the user manual V2, specifically for CAS functions.
Find all posts by this user
Quote this message in a reply
Post Reply 




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