Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5640

Re: DiagonalizableQ

From "Hans Michel" <hmichel@cox.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: DiagonalizableQ
Date 2011-10-14 09:57 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j79126$i3n$1@smc.vnet.net> (permalink)
References <201110130748.DAA02360@smc.vnet.net>

Show all headers | View raw


There is no Mathematica built-in function called " DiagonalizableQ"
It is defined (constructed) just above "DiagonalizableQ[{{0, 1}, {0, 0}}]"
example as 

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
   ];

Hans
-----Original Message-----
From: Jim Kochanski [mailto:jwkochanski@vcu.edu] 
Sent: Thursday, October 13, 2011 2:48 AM
Subject: DiagonalizableQ

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
-------------------------------------------------

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: DiagonalizableQ "Hans Michel" <hmichel@cox.net> - 2011-10-14 09:57 +0000

csiph-web