[Date Index]
[Thread Index]
[Author Index]
Re: Manipulate with Matrices
*To*: mathgroup at smc.vnet.net
*Subject*: [mg113620] Re: Manipulate with Matrices
*From*: roby <roby.nowak at gmail.com>
*Date*: Fri, 5 Nov 2010 05:10:38 -0500 (EST)
*References*: <iatt2b$egc$1@smc.vnet.net>
What ever this should be good for but perhaps it is this what you
want:
you can specify the n x n matrix to be the sum of a scalar multiple of
the identity matrix and a constant matrix.
It shows you the matrix its inverse and its determinat.
Manipulate[k IdentityMatrix[n]+ConstantArray[l,{n,n}]//{#//
MatrixForm,#//Inverse//MatrixForm,#//Det}&//Column,
{{n,1},1,10,1},
{{k,0},0,10,1},
{{l,1},0,10,1}
]
On 4 Nov., 10:06, Jay <jaie... at gmail.com> wrote:
> I would like to use Manipulate on matrices. For instance, allow the
> user to choose elements of a 50 by 50 matrix, and Manipulate shows the
> dynamic inverse or transpose or determinant or whatever of the so
> manipulated matrix. But I do not wish to specify ranges for the 2500
> elements separately, but rather using matrices as objects.
>
> For instance, I would like the user to choose a 5 by 5 matrix, whereby
> the range goes from the zero matrix to the matrix with all elements
> equal to 100, with initial matrix the identity matrix:
>
> Manipulate[
> Det[nn], {{nn, IdentityMatrix[5]}, ConstantArray[0, {5, 5}],
> ConstantArray[100, {5, 5}]}]
>
> How can this be accomplished? How do I tell Mathematica that nn is a 5
> by 5 matrix to start with? I would have hoped that the
> initial value shows it is a 5 by 5 matrix, but I think that does not
> work quite so automatically.
>
> In that sense, neither the following works,
>
> Manipulate[FullSimplify[Det[Array[nn, {5, 5}]]], {nn}]
>
> Any help much appreciated!
>
> Jay
Prev by Date:
**Re: Balance point of a solid**
Next by Date:
**Re: Numerical solution of the heat equation on a disk**
Previous by thread:
**Re: Manipulate with Matrices**
Next by thread:
**Exporting to PDF in full (landscape) page size?**
| |