Post Reply 
INPUT in cas/end program
04-11-2015, 07:59 AM
Post: #5
RE: INPUT in cas/end program
(04-10-2015 09:10 PM)Han Wrote:  The argument for EXPR() must be a string such that, when parsed, is equivalent to the command you wish to issue.

ok, thank you!
I solved so:

Code:

inputT()
// input routine for choice 3
BEGIN
INPUT(T, "Interval", "Period T",  "Input T for [-T/2, T/2]", 2);
RETURN T;
END;

#cas
fourcoeff(args):=
// Coefficienti di Fourier...
BEGIN
// ...
CHOSE
// ...
IF scelta=3 THEN 
EXPR("FourCoeff.inputT()");
// input T for interval [-T/2, T/2] es. 2pi -> [-pi, pi], 2 -> [-1,1] ...
END;

DEFAULT RETURN("Choose periodicity interval");
END; // case

END;
#end

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
INPUT in cas/end program - salvomic - 04-10-2015, 07:45 PM
RE: INPUT in cas/end program - Han - 04-10-2015, 08:55 PM
RE: INPUT in cas/end program - salvomic - 04-10-2015, 09:08 PM
RE: INPUT in cas/end program - Han - 04-10-2015, 09:10 PM
RE: INPUT in cas/end program - salvomic - 04-11-2015 07:59 AM



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