HP Forums
show reserved variables on catalog and help - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: show reserved variables on catalog and help (/thread-5641.html)



show reserved variables on catalog and help - compsystems - 02-04-2016 09:00 PM

please, in the "help topics" win to adhere a new item "reserved variables" also on catalog (submenu), is hard to remember the internal names when programming

DOM_INT
DOM_FLOAT
DOM_STRING
DOM_SYMBOLIC
DOM_FUNC
DOM_LIST
etc
...


Code:
.... local l;
 IF (type(g)==DOM_SYMBOLIC  OR type(g)== DOM_FUNC)
   THEN 
    l:=MAKELIST(X,X,a,b,(b-a)/n);
      IF type(g)==DOM_SYMBOLIC THEN
      g:=unapply(g,x);
      END;



RE: show reserved variables on catalog and help - Joe Horn - 02-04-2016 09:32 PM

I agree that adding the list of object type names to the Help system would be great. Meanwhile, using the 'type' command in CAS on a literal object of known type might be even faster than hunting for it in the Help system.

type(1) --> DOM_INT
type("x") --> DOM_STRING
type(x) --> DOM_IDENT
etc.


RE: show reserved variables on catalog and help - compsystems - 02-04-2016 10:51 PM

also the commands written in the input line, to display on the left side of history with the same nomenclature, not show them to uppercase, commands are case sensitive, this creates confusion
type ≠ TYPE


CAS-MODE
________
type(4*i)
¯¯¯¯¯¯¯¯
=> History

TYPE(4*i) DOM_COMPLEX =(

It should be viewed as

type(4*i) DOM_COMPLEX =)


RE: show reserved variables on catalog and help - Joe Horn - 02-06-2016 06:10 AM

(02-04-2016 10:51 PM)compsystems Wrote:  CAS-MODE
________
type(4*i)
¯¯¯¯¯¯¯¯
=> History

TYPE(4*i) DOM_COMPLEX =(

It should be viewed as

type(4*i) DOM_COMPLEX =)

A workaround: You can force it to display the correct case by turning off Textbook Display mode (Home Settings, page 2).