![]() |
INPUT in cas/end program - 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 in cas/end program (/thread-3610.html) |
INPUT in cas/end program - salvomic - 04-10-2015 07:45 PM hi all, sorry if I repost a question: I'm trying to upgrade my program to calculate the Fourier's Coefficient, it's a #cas/#end program, with a function (ChooseInterval()) to choose value for integral's interval. At the moment it has two options ([0, 2PI] - [-PI, PI]), now I'm adding another option to enclose the case "Other", to calculate any interval. But now (for case 3) I need to input two values for inf and sup values of interval. I'm trying: Code:
Any help? Salvo RE: INPUT in cas/end program - Han - 04-10-2015 08:55 PM (04-10-2015 07:45 PM)salvomic Wrote: hi all, From http://www.hpmuseum.org/forum/thread-3590-post-32427.html#pid32427 : Non-CAS programs can make use of "interface" commands such as CHOOSE() and INPUT() whereas CAS programs are generally not interactive. A workaround is to use the EXPR() command to call these commands indirectly. EXPR() works like CAS() in that both take input strings. RE: INPUT in cas/end program - salvomic - 04-10-2015 09:08 PM (04-10-2015 08:55 PM)Han Wrote: Non-CAS programs can make use of "interface" commands such as CHOOSE() and INPUT() whereas CAS programs are generally not interactive. A workaround is to use the EXPR() command to call these commands indirectly. EXPR() works like CAS() in that both take input strings. do you mean something like this? Code:
RE: INPUT in cas/end program - Han - 04-10-2015 09:10 PM (04-10-2015 09:08 PM)salvomic Wrote:(04-10-2015 08:55 PM)Han Wrote: Non-CAS programs can make use of "interface" commands such as CHOOSE() and INPUT() whereas CAS programs are generally not interactive. A workaround is to use the EXPR() command to call these commands indirectly. EXPR() works like CAS() in that both take input strings. The argument for EXPR() must be a string such that, when parsed, is equivalent to the command you wish to issue. RE: INPUT in cas/end program - salvomic - 04-11-2015 07:59 AM (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:
|