Maxima Digest, Vol 39, Issue 72(how to address a specific element from a matrix)



I think that is mymatrix[3,2] is not mymatrix[3][2].

(%i7) A:matrix([1,2],[3,4],[5,6]);
A[3,2];
A[2,1];
(%o7) matrix([1,2],[3,4],[5,6])
(%o8) 6
(%o9) 3

> > Message: 2
> Date: Thu, 29 Oct 2009 12:51:06 +0100 (CET)
> From: Hugo Coolens <coolens at kahosl.be>
> Subject: [newbie] how to address a specific element from a
> 	matrix
> To: "'Maxima List'" <maxima at math.utexas.edu>
> Message-ID: <alpine.DEB.1.10.0910291246380.19745 at allserv.kahosl.be>
> Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
> 
> I entered a set of matrices without a problem, but after manipulating them 
> I need to address only some elements of the matrix.
> How do I get i.e. the element on the third row and the second column.
> 
> I tried things like u_32: mymatrix [3][2];
> 
> but that doesn't work
> 
> any help?
> 
> thanks in advance
> hugo

 		 	   		  
_________________________________________________________________
?????????????????B?v???B?????p?u???M???R?M???A?????q?X?A???v ?X Windows Live Spaces
http://home.spaces.live.com/?showUnauth=1&lc=1028