Difference between array and matrix and usage of "~"
- Subject: Difference between array and matrix and usage of "~"
- From: Barton Willis
- Date: Tue, 13 Nov 2007 19:44:06 -0600
-----maxima-bounces at math.utexas.edu wrote: -----
>To: maxima at math.utexas.edu
>From: 田 冀焕 <tianjh04 at mails.tsinghua.edu.cn>
>Sent by: maxima-bounces at math.utexas.edu
>Date: 11/13/2007 06:27AM
>Subject: Difference between array and matrix and usage of "~"
>
>(C2) A : matrix([1,2,3], [4,5,6])$
>(C3) row(A,1) ~ row(A,2);
>(D3) [ 1 2 3 ] ~ [ 4 5 6 ]
>(C4) express(row(A,1) ~ row(A,2));
>~ USED WITH IMPROPER ARGUMENTS: [ 1 2 3 ] [ 4 5 6 ]
Try this:
(%i2) A : matrix([1,2,3], [4,5,6])$
(%i3) express(inpart(A,1) ~ inpart(A,2));
(%o3) [-3,6,-3]
BW