# Constructed matrix gives a ragged array

Posted 14 days ago
162 Views
|
|
0 Total Likes
|
 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!
 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]