Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5642
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: DiagonalizableQ |
| Date | 2011-10-14 09:58 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j79143$i44$1@smc.vnet.net> (permalink) |
| References | <j765a1$2cg$1@smc.vnet.net> |
On Thu, 13 Oct 2011 08:51:29 +0100, Jim Kochanski <jwkochanski@vcu.edu>
wrote:
> When I cut and paste "DiagonalizableQ[{{0, 1}, {0, 0}}]"
>
>> From the following, which can be found under Applications at
> http://reference.wolfram.com/mathematica/ref/JordanDecomposition.html...
>
>>> Test if a particular matrix is diagonalizable:
>>> In[2]:= DiagonalizableQ[{{0, 1}, {0, 0}}]
>>> Out[2]= False
>
> I get... Out[2]= DiagonalizableQ[{{0, 1}, {0, 0}}] and not False
>
> Can anyone give me some direction on using DiagonalizableQ?
>
> Thanks!
>
> Sincerely,
>
> Jim
This is not a built-in. First define it, as shown in the cell directly
above the one you are copying from:
DiagonalizableQ[m_?MatrixQ /; Apply[Equal, Dimensions[m]]] :=
Module[{s, j},
{s, j} = JordanDecomposition[m];
Length[
Cases[ArrayRules[j][[1 ;; -2, 1]], {i_, j_} /; j == i + 1]
] == 0
];
Then:
DiagonalizableQ[{{0, 1}, {0, 0}}]
False
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
DiagonalizableQ Jim Kochanski <jwkochanski@vcu.edu> - 2011-10-13 07:51 +0000 Re: DiagonalizableQ mmausr <opngid@gmail.com> - 2011-10-14 09:54 +0000 Re: DiagonalizableQ "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-10-14 09:58 +0000
csiph-web