Subject: getting a matrix element without brackets?
From: Stavros Macrakis
Date: Mon, 19 Aug 2013 08:22:13 +0200
m[1] is the first row of matrix m.
m[1,1] is the element in row 1, column 1.
-s
On Aug 19, 2013 7:42 AM, "Iai Masafumi ax" <iai at axelspace.com> wrote:
> Hello,
>
> How can I get "yy+uu" instead of "[yy+uu]" in my example below? I need
> to remove brackets. They become problematic when going to more complex
> calculations.
>
>
> (%i185) func(a,b) := a[1]+b[1];
>
> (%o185) func(a,b):=a[1]+b[1]
>
> (%i188) a:matrix([yy], [zz]);
> b:matrix([uu], [ww]);
>
> (%o188) matrix([yy],[zz])
> (%o189) matrix([uu],[ww])
>
> (%i190) func(a,b);
>
> (%o190) [yy+uu]
>
>
> Thank you,
> Iai
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>