HP Forums
INPUT function - 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: INPUT function (/thread-10386.html)



INPUT function - maru - 03-25-2018 01:22 PM

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);



RE: INPUT function - Arno K - 03-25-2018 05:31 PM

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