Items tagged with matrix matrix Tagged Items Feed

This is another elementary question (I tried searching MaplePrimes but couldn't find anything):

Suppose I'd like to use "solve" to solve a system of equations specified as vectors:

z := <yb,x1b,x2b>:
v1 := <v1y,v1x1,v1x2>:
v2 := <v2y,v2x1,v2x2>:
e1 := z = v1 + v2;
e2 := v1 <= UU*delta1;
e3 := v2 <= UU*delta2;

Invoking "solve([e1,e2,e3],[z,v1,v2])" does not work. 

How do I convert each element...

Hi

I have some difficulties in manipulating matrices in Maple

For example, I have a matrice with 40 rows and 9 columns ans I want to extract the odd rows taking columns inchanged. The new matrice which has 20 rows and 9 columns must replace the old matrice

In Matlab, I do this with only one command: WTable=WTable(1:2:40,:);

Thanks in advance for help

I want to fill a matrix m by m with elements

1) the elements under the diagonal comes from the expression

Gama:=(i, k)→evalf(((x[k]-x[i])*xdot[k]-(y[k]-y[i])*ydot[k])*dtheta[i]/((x[k]-x[i])+(y[k]-y[i])^2))

2) the elements in the diagonal comes from Lambada:=(i)→-sum(Gama, k=1..M), where i<>k

 i want to create matrix that it`s element are matrix.
for example my matrix is 3*3 and elements are 2*2
in addition my element-matrix elements are unknown(x11,x12,........)

As alluded to in my previous post in this series, one of the most straight forward ways to test if a PRNG is generating good random sequences is by examining the frequency of 0's and 1's.  This is just a couple line in Maple using Statistics:

(**) r1 := rand(0..1):L := [seq(r1(), i=1..10000)]:
(**) n := nops(L); tally := `+`(op(L));
(**) Statistics:-ChiSquareGoodnessOfFitTest(
[n-tally, tally], [n/2, n/2], ':-output'=':-hypothesis');

Select a column in maple

August 09 2010 by marxyification 5 Maple

Hi,

Can someone help me out here, is it possible to select a column from a matrix result in maple.

for example using the Eigenvector(M) command lets say i get the result

                                                ...

Hi, 

How can I create a matrix M by M with maple, where the elements of diagonal comes from b[i]=i+1 and the other elements comes from c[i,k]=i+k.

Amr

problem with matrices

August 05 2010 by ralperin 24

The code below changes the starting value of a to the last value of b (in Maple 14). Is that a feature?

> a := matrix(2, 2, [1, 2, 3, 4]);
> b := a;
> for i to 2 do for j to 2 do b[i, j] := (1/3)*b[i, j] end do end do;
> evalm(b);
> evalm(a);

Hi there. I have two expressions of type Matrix(7x1), one I entered directly and the other one is the result of a  procedure calling. They only differ by the term [1,1], so when I do a comparation of the appropiate submatrix using Equal I get a positive answer:

 

>Equal(SubMatrix(atataaV(1,1,1,1,u1),2..-1,1),SubMatrix(u1,2..-1,1));

true

 

Now, the elements of the submatrices depend on the symbol 'n',...

Please explain me why it happens:

 

with(LinearAlgebra);

MatrixInverse(`<|>`(`<,>`(a, c), `<,>`(b, d)));

Error, MatrixInverse is not a command in the LinearAlgebra package

 

WHY? Whats wrong, please explain me?

The greatest benefits from bringing Maple into the classroom are realized when the static pedagogy of a printed textbook is enlivened by the interplay of symbolic, graphic, and numeric calculations made possible by technology.  It is not enough merely to compute or check answers with Maple.  To stop after noting that indeed, Maple can compute the correct answer is not a pedagogical breakthrough.

...

Error in Fsolve

July 06 2010 by reza_maple 20 Maple

hi

please help me to solve this error.

Error.pdf 

The Linear Algebra package seems only able to handle Vector and Matrix algebra when the dimensions are given specifically.

It would be very helpful if the package were to be extended to cope with the situation where some or all of the dimentions were given symbollically. Of course, assume could be used to indicate when two dimensions were equal.

Are there any plans in this direction for future releases of Maple?

 

 

Hi

I guess I should know this but what is the difference between a Matrix and an Array in Maple?

 

thanks

I tried to solve this problem. 

It is a Maple TA question, but I get my solution wrong.

***********************

Question:

There is given a linear equation system consisting of two equations with four unknowns.

-x[1]-2*x[2]+x[3]+2*x[4] = 8

1 2 Page 1 of 2