Message Boards Message Boards

0
|
2447 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Constructed matrix gives a ragged array

Posted 3 years ago

Hi, I have the following matrix:

m5 = {{0, -BesselJ[5, 3/2], -BesselY[5, 3/2], 0}, {0, 
   -(3/2) (BesselJ[4, 3/2] - BesselJ[6, 3/2]), -(3/2) (BesselY[4, 3/2] - BesselY[6, 3/2]), 0}, {I^(5)*BesselJ[5, 1], 
   BesselJ[5, 3], BesselY[5, 3], 
   HankelH1[5, 1]}, {I^(5)*(3/2 (BesselJ[4, 3] - BesselJ[6, 3])), 3/2 (BesselY[4, 3] - BesselY[6, 3]),1/2 (HankelH1[4, 3] - HankelH1[6, 3])}}

and I want to calculated its determinant. But I get no such options, as it is treated as a "ragged array", although all its values are purely numerical.

What do I have to do to treat this as a matrix and get the determinant?

Thanks!

POSTED BY: Ser Man

It seems that there is a typo in the last line of m5

m5[[1]] // Length
m5[[4]] // Length

Looks like there is missing somethin in row 4

m5 = {{0, -BesselJ[5, 3/2], -BesselY[5, 3/2], 
   0}, {0, -(3/2) (BesselJ[4, 3/2] - 
      BesselJ[6, 3/2]), -(3/2) (BesselY[4, 3/2] - BesselY[6, 3/2]), 
   0}, {I^(5)*BesselJ[5, 1], BesselJ[5, 3], BesselY[5, 3], 
   HankelH1[5, 1]}, {I^(5)*(3/2 (BesselJ[4, 3] - BesselJ[6, 3])), 
   3/2 (BesselY[4, 3] - BesselY[6, 3]), 
   1/2 (HankelH1[4, 3] HankelH1[6, 3]), aaaa}}
Length /@ m5
Det[m5]
Det[m5 // N]
POSTED BY: Hans Dolhaine
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract