Items tagged with matrix matrix Tagged Items Feed

Hi all,

I have this matrix for example:

A := <<1,2>|<3,4>>;

How to determine: 2^A

Thank you

Hello,

I would like to assume a matrix to have only real components.

I have seen that the function assume has some features to assume properties for matrix. But, I didn't find the one that I want : "assume a matrix to have only real components".

This assumation should allow me to suppress this kind of choice in my code :

if A::{complexcons, undefined} then
evalf(1/A);
elif A::rtable and ArrayTools:-NumElems(A) = 1 then
Vector([evalf(1/A(1))]);
else
evalf(LinearAlgebra:-MatrixInverse(A));
end if;

Do you have some ideas ?

P.S: The matrix should be also a square matrix. So, the first code line will probably be : assume(a, 'SquareMatrix')

Thanks a lot for your help.

for example

There is a Matrix A:=Matrix([[1,2,3],[4,5,6]]), which function can help me find if 4 is an entry of  this Matrix?

Above is the outcome I am getting at the current time... and I used map(expand,...) to do the expansion then simplifing it goes back to the origional. 

Below is the outcome I would like to achieve...you can see that this is a different method. The problem I have is this is the right click method of expansion and I am tring to build a program that solves matrix ODE's by just inputing the initial matrix and it doing everything so i can check my answers step by step. 

So my question is, is there another method of command input to get the bottom line in the below picture?

 

 

convert(Matrix(2, 2, {(1, 1) = (s-2)/(s^2-s-12), (1, 2) = -5/(s^2-s-12), (2, 1) = -2/(s^2-s-12), (2, 2) = (s+1)/(s^2-s-12)}), parfrac);
%;
Error, (in convert/parfrac) input must be a rational polynomial in s

gives me that error and i assume I can not use this command for matrix opperations if that is true is there a way to do it such as issolateing each element and doing each individually and putting it back into a matrix is that posible if so can someone show me the code for that?

 

I have the following transition rate matrix. Upto m the matrix follows a patern and after that the patern changes but repetative structure is there upto n. In this problem m=4, n=9. How to write these entries using for loop in maple?

Matrix.pdf

i just need 1 at a11 position of a square matrix. do not need zeros like in complete pivoting. plz help

Hi EveryOne!

Let matrix M over GF(2n)/f(x). How to compute:

1. Rank of M.

2. Sum of the elements and Square of this Sum in any row of M (i.e: Sum=mi0 + mi1 + ... + min, and Sum2 ).

3. New matrix M, where in row i  mi0 = mi0/Sum2, mi1 = mi1/Sum2, ..., min = min/Sum2.

Please help me. Thank you very much.

hi I am tying to create a matrix: 

 

for i from 1 to 5 do

for j from 1 to 5 do

 A[i][j]:=i+j;

od

od;

 

But it doesn't create a matrix. As when I tried inverse operation it doesn't work. How can I create a matrix? Also can the index start from 0??

thanks

Let M be the matrix [[]] means that a matrix without any array. If we call RowDimension(M) then it output is 1 and we know that it is zero. What I have to do? It is hilarious that the RowDimension([[1]])=RowDimension([[]])!!!

I know that the "Rank(M)" command of Maple computes the rank of matrix M and I know that the "RowDimension(M)" gives the number of rows of M. Is there any command to gives the number of nonzero rows or columns of M?

For example, Let M be the following matrix. I want [2,3] as the output  where the first component ( second component. resp) is the number of nonzero rows (nonzero columns. resp) of M.

                              [1  5  6]

                       M=   [0  0  0]

                              [2  3  5]

i need to find how many rows and how many columns has a matrix that i just imported so i don't have to use readstat so it will be more automatic.

m1 := ImportMatrix("Matrix1.txt");
F := readstat("rows of the matrix");
C := readstat("columns of the matrix)")

LAG := C-1;
LAGG := F-1

for a to LAG do
for v to F do
for i to C-a do
h := m1(v, i);
r := m1(v, i+a);
..
..
.
.
in mathlab we use 

a=load('BROOKER.dat'); 

[m,n]=size(a);

but in maple? please help

Let I=<3x^2+2xy+x, y-xy+3, y^2-2x+4> be a polynomial ideal in K[x,y]. I want to form a matrix M corresponding to this ideal as the following:      

                                 x^2     xy     x      y^2      y      constant

                               -----     ----   ----    ----     ----     ------

                                  [3       2       1       0       0           0]

                             M= [0      -1      0        0       1           3]

                                  [0       0     -2        1       0           4]

 

Please note that in the first, the all monomials appeared in generators of I,  sorted by lexicographic ordering x>y. How can I from matrix M from polynomial I?

Dear friend! Hope you will be fine, I want to general matrix for m by m order. The file attached. I am waiting kind response.

Help.mw

PhD (Scholar)
Department of Mathematics

 

Hi all

Assume that we have following special matrix(Namely ATilde) for arbitrary vectore  z=[a0,a1,a2,a1*,a2*]:
atild.mws

and we want to use this as a general function for other arbitrary vector. is ther any way?

for example z1=[x,y,t,s,u]?

thanks for any help

best wishes

 

Mahmood   Dadkhah

Ph.D Candidate

Applied Mathematics Department

1 2 3 4 5 6 7 Last Page 1 of 36