HP Forums

Full Version: INPUT function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
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
Reference URL's