HP Forums
CAS programs public beta 2 - 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: CAS programs public beta 2 (/thread-9615.html)



CAS programs public beta 2 - Helge Gabert - 12-02-2017 09:03 PM

Just noticed that CAS programs don't seem to run without at least one parameter, for example

#cas
Myprog():=
BEGIN

Doesn't run. ??

But Myprog(dummy) is ok. Has this always been like that? Maybe l never noticed. All my CAS programs have associated parameters.


RE: CAS programs public beta 2 - Carlos295pz - 12-02-2017 09:30 PM

It has been like this since before


RE: CAS programs public beta 2 - Helge Gabert - 12-02-2017 09:43 PM

Thanks for the feedback.


RE: CAS programs public beta 2 - parisse - 12-03-2017 07:20 PM

CAS programs may have 0 arguments, you can run them from commandline, just don't forget () after the program name.


RE: CAS programs public beta 2 - Carlos295pz - 12-03-2017 09:00 PM

(12-03-2017 07:20 PM)parisse Wrote:  CAS programs may have 0 arguments, you can run them from commandline, just don't forget () after the program name.

When calling from Home or HP PPL you need to send at least one argument even if you do not need it.


RE: CAS programs public beta 2 - compsystems - 12-03-2017 11:13 PM

In CAS mode it does not require arguments, from the history requires name + (), because without parentheses or round brackets, is called of the content or code of program
In HOME mode (numerical) require name(nop) =( , without parentheses or empty parentheses calls for the content of the code


RE: CAS programs public beta 2 - Helge Gabert - 12-04-2017 04:27 AM

Thank you - - yes, when calling the CAS progam you need parenthesis after the program name - - which can be empty. You do not need the parenthesis for Home programs with zero arguments, though, which threw me off.