Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5622 > unrolled thread
| Started by | Jim Kochanski <jwkochanski@vcu.edu> |
|---|---|
| First post | 2011-10-13 07:51 +0000 |
| Last post | 2011-10-14 09:58 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
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
| From | Jim Kochanski <jwkochanski@vcu.edu> |
|---|---|
| Date | 2011-10-13 07:51 +0000 |
| Subject | DiagonalizableQ |
| Message-ID | <j765a1$2cg$1@smc.vnet.net> |
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
-------------------------------------------------
James W. Kochanski
Cell (804) 647-4675 =E2=86=90 =E2=86=90 =E2=86=90 Preferred
Home (804) 639-2579
jwkochanski@vcu.edu
jkochanski@jtcc.edu
jim@kochanski.us
-------------------------------------------------
[toc] | [next] | [standalone]
| From | mmausr <opngid@gmail.com> |
|---|---|
| Date | 2011-10-14 09:54 +0000 |
| Message-ID | <j790td$i24$1@smc.vnet.net> |
| In reply to | #5622 |
Evaluate the function definition below first:
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
];
It is not a built-in function ... which is why the function is defined
in the help page.
[toc] | [prev] | [next] | [standalone]
| From | "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> |
|---|---|
| Date | 2011-10-14 09:58 +0000 |
| Message-ID | <j79143$i44$1@smc.vnet.net> |
| In reply to | #5622 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web