Post Reply 
Need suggestion about long matrix program
03-28-2021, 05:05 PM (This post was last modified: 03-28-2021 05:22 PM by Amer7.)
Post: #6
RE: Need suggestion about long matrix program
(03-27-2021 06:14 PM)Didier Lachieze Wrote:  
(03-27-2021 05:29 PM)Amer7 Wrote:  I want program to utilize M1, M2, M3 - matrices, products of program calculations will be new matrices M4,M5....A1...A7.
And I want to store these in calculator variables because I could view them. ( these will be large matrices with 9 decimal numbers, and print option is awful.

The variables M1 to M9 are predefined as global matrix variables so you can use them as you want.
To have A1 to A7 defined as global matrix variables that you can view in the matrix editor you have to declare them before the beginning and outside of your program with:

EXPORT A1,A2,A3,A4,A5,A6,A7;

For example:
Code:
#pragma mode( separator(.,;) integer(h32) )
EXPORT A1,A2,A3,A4,A5,A6,A7;

EXPORT TST()
BEGIN
 A1:=[[1,2],[3,4]];
END;

After executing TST() you'll find A1 in the matrix editor.

When I try to run that i get syntax error, and when I try to run
Code:

EXPORT A1;
A1:=M0+M1;
EXPORT TST();
I get Syntax Error at EXPORT

Gosh why does everything has to be complicated about this calculator, i'm not a programmer...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Need suggestion about long matrix program - Amer7 - 03-28-2021 05:05 PM



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