Post Reply 
input issues
01-26-2021, 03:01 PM (This post was last modified: 01-26-2021 04:29 PM by Amer7.)
Post: #15
RE: input issues
How can I make a Matrix like nxm size and then fill the places with my own variables, then to operations between 2 Matrices and print them out. I went with Help but when I try it like this;
Code:
LOCAL A1,A2; /// A1=B, A2=Cl
A1:=MAKEMAT(0,2,2)→[[b11,b12],[b21,b22]];
A2:=MAKEMAT(0,2,2)→[[c11,c12],[c21,c22]];

It throws an error in this field "→" Is there another symbol that i can use in notepad when writing programs?

Will it function as a matrix if I write it like this:
Code:
LOCAL A1,A2; /// A1=B, A2=Cl
A1:=[[b11,b12],[b21,b22]];
A2:=[[c11,c12],[c21,c22]];
[/code]

It seems it works also you can print by row
PRINT=(""+A1(1)); - Prints first row of matrice A1

EDIT: How will I extract value from matrix A2 that is a product of A2:=A1*A2 ?
I need values of A2 [a11,a12], [a21,22] etc...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
input issues - Amer7 - 01-25-2021, 02:07 PM
RE: input issues - Didier Lachieze - 01-25-2021, 02:38 PM
RE: input issues - Amer7 - 01-25-2021, 03:13 PM
RE: input issues - rprosperi - 01-25-2021, 03:47 PM
RE: input issues - Amer7 - 01-25-2021, 03:53 PM
RE: input issues - Didier Lachieze - 01-25-2021, 04:03 PM
RE: input issues - Amer7 - 01-25-2021, 04:38 PM
RE: input issues - Didier Lachieze - 01-25-2021, 05:00 PM
RE: input issues - Amer7 - 01-25-2021, 06:25 PM
RE: input issues - C.Ret - 01-25-2021, 07:13 PM
RE: input issues - Didier Lachieze - 01-25-2021, 07:32 PM
RE: input issues - Amer7 - 01-25-2021, 07:42 PM
RE: input issues - toml_12953 - 01-26-2021, 04:34 PM
RE: input issues - C.Ret - 01-25-2021, 07:36 PM
RE: input issues - Amer7 - 01-25-2021, 08:00 PM
RE: input issues - Amer7 - 01-26-2021 03:01 PM
RE: input issues - Amer7 - 01-27-2021, 11:45 AM
RE: input issues - Didier Lachieze - 01-27-2021, 01:59 PM



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