Post Reply 
show reserved variables on catalog and help
02-04-2016, 09:00 PM
Post: #1
show reserved variables on catalog and help
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;
Find all posts by this user
Quote this message in a reply
02-04-2016, 09:32 PM
Post: #2
RE: show reserved variables on catalog and help
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.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
02-04-2016, 10:51 PM
Post: #3
RE: show reserved variables on catalog and help
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 =)
Find all posts by this user
Quote this message in a reply
02-06-2016, 06:10 AM
Post: #4
RE: show reserved variables on catalog and help
(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).

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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