Post Reply 
CAS Programs
07-14-2023, 07:25 PM
Post: #1
CAS Programs
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.
Find all posts by this user
Quote this message in a reply
07-15-2023, 01:00 PM
Post: #2
RE: CAS Programs
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
Find all posts by this user
Quote this message in a reply
07-15-2023, 10:55 PM (This post was last modified: 07-15-2023 11:06 PM by matalog.)
Post: #3
RE: CAS Programs
(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.
Find all posts by this user
Quote this message in a reply
07-15-2023, 11:46 PM
Post: #4
RE: CAS Programs
(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.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
07-19-2023, 11:13 AM
Post: #5
RE: CAS Programs
I confirm it's a bug that I recently fixed.
Find all posts by this user
Quote this message in a reply
Post Reply 




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