HP Forums

Full Version: CAS Programs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I have a simple program that was made to run in Home mode, do I have to change it to make it run in CAS mode?

Are there some rules that need to be followed to convert the program to a CAS program? Is there a different start, rather than "EXPORT PROG();BEGIN" that states that a CAS program follows?

Ticking the CAS box doesn't change anything now, and I couldn't see much in the manual.
Here's an example cas program:

Code:
#cas
casprogram():=
BEGIN
 "cas program goes here";
END;
#end

Typing this:

CAS(EVAL("casprogram()"))

on the command line returns this:

"cas program goes here"

-road
(07-15-2023 01:00 PM)roadrunner Wrote: [ -> ]Here's an example cas program:

Code:
#cas
casprogram():=
BEGIN
 "cas program goes here";
END;
#end

Typing this:

CAS(EVAL("casprogram()"))

on the command line returns this:

"cas program goes here"

-road
That's great. It's okay to use variables which are capital letters etc in there? I'll give that a go. Thanks.
(07-14-2023 07:25 PM)matalog Wrote: [ -> ]If I have a simple program that was made to run in Home mode, do I have to change it to make it run in CAS mode?

Are there some rules that need to be followed to convert the program to a CAS program? Is there a different start, rather than "EXPORT PROG();BEGIN" that states that a CAS program follows?

Ticking the CAS box doesn't change anything now, and I couldn't see much in the manual.

The CAS box used to add the
#cas
#end
sequence but now it doesn't. I think it's a bug.
I confirm it's a bug that I recently fixed.
Reference URL's