Re: Matrix manipulation
- To: mathgroup@smc.vnet.net
- Subject: [mg12386] Re: [mg12327] Matrix manipulation
- From: "Jrgen Tischer" <jtischer@pitagoras.univalle.edu.co>
- Date: Sun, 10 May 1998 02:05:08 -0400
Hello Michael,
If you look at b with FullForm you will realize that b is not of the
form of a matrix. Since Inverse obviously cannot have Attributes
Listable, it can't go in. You can use Inverse/@b to get the MatrixForm
of Inverse[a].
Jrgen
-----Original Message-----
From: Michael Chang <bt585@FreeNet.Carleton.CA> To:
mathgroup@smc.vnet.net
Subject: [mg12386] [mg12327] Matrix manipulation
>Hi everyone!
>
>I'm running Mathematica 3.1.x on Windoze 95. Here's a simple question
>that has been bothering me recently.
>
>Suppose I define:
>
>a={{1,2},{3,4}};
>
>In this case,
>
>Inverse[a]
>
>gives back the expected result
>
>{{-2,1},{3/2,-1/2}}
>
>However, suppose I now define
>
>b=a//MatrixForm
>
>and now type
>
>Inverse[b]
>
>I *don't* get back any answer as before, but just my input
>
>Inverse[(2 3)]
> [(4 5)]
>
>(The above is supposed to be a matrix!). Anyways, why is this?!? Other
>operations also fail to work in the same manner, such as Det,
>Transpose, Eigenvalues, Eigenvectors, etc.
>
>Is this a bug with Mathematica's front end? Any help with this would be
>greatly appreciated!
>
>Thanks,
>
>Mike
>
>