Post Reply 
INPUT function
03-25-2018, 01:22 PM
Post: #1
INPUT function
Hi,

I would like to run the tabvar command after entering a function in an INPUT in a program.
But x and X make difficult this wish...

How to do ?

Code:

LOCAL f;
INPUT({{f,[8]}});
CAS.tabvar(f);
Find all posts by this user
Quote this message in a reply
03-25-2018, 05:31 PM
Post: #2
RE: INPUT function
tabvar seems not to be programmable in a non.CAS program, after a try without that input:
Code:
EXPORT test()
BEGIN
LOCAL f,x;
 //INPUT({{f,[8]}});
 //f:=(LOWER(STRING(f)));
 //f:=EXPR(f);
f:=CAS.tabvar(x^2);
PRINT(CAS.tabvar(x^2,x,2,6));
END;
and a debug observing f I get an empty list or undef, that depends on the amount of parameters passed to tabvar(x^2).
A CAS program works:
Code:

#cas
test2(f):=
BEGIN
  return tabvar(f);
END;
#end
but shows the output of tabvar in terminal first.
Arno
Find all posts by this user
Quote this message in a reply
Post Reply 




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