Post Reply 
[CAS] Detection of errors in the program editor
10-20-2016, 06:06 PM (This post was last modified: 10-20-2016 06:13 PM by compsystems.)
Post: #6
RE: [CAS] Detection of errors in the program editor
(CAS HPP-PL) Programming Language of the calculator HP-Prime CAS mode
PHP Code:
#cas
  
bbb():=
  
begin
    purge
(a);
    print (
5=6); wait
    print (
a=5); wait
    return 
"Done";
  
end;
#end 

->
5=6 //ok
a=5 //ok



the following statement the (CAS HPP-PL) compiler must detect the error
PHP Code:
...
  
purge(a);
  if( (
5) and truethen
  
... 
"Error: is not possible to determine the logical value of a = 5"
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [CAS] Detection of errors in the program editor - compsystems - 10-20-2016 06:06 PM



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