ClearAll["Global`*"]
(*This program is to find the natural frquency of a beam with \
spring-mass connected at some arbitary location 'z'*)
Y = 2*10^11;
Iyy = 8.333*10^-6;
L = 4;
z = 0.01;
stiff = (Y*Iyy)/L^3;
k = {0.01, 1, 2, 4, 6, 8, 10, 25, 50, 100, 200, 300, 400, 500, 600,
800, 1*^3, 2*^3, 4*^3, 5*^3, 10*^3, 15*^3, 20*^3, 30*^3, 40*^3,
70*^3, 1*^5, 1*^6, 1*^8,
1*^12}(*THIS IS THE FIRST PARAMETER REPRESENTS STIFFNESS *)
m = {0.01, 1, 2, 4, 6, 8, 10, 25, 50, 100, 200, 300, 400, 500, 600,
800, 1*^3, 2*^3, 4*^3, 5*^3, 10*^3, 15*^3, 20*^3, 30*^3, 40*^3,
70*^3, 1*^5, 1*^6, 1*^8,
1*^12}(*THIS IS THE SECOND PARAMETER REPRESENTS MASS*)
(*s[i_,j_]:=((m[[j]]*b^4)/(1-m[[j]]/k[[i]]*b^4))*)
(*Represents the scaling in right hand side of the differential \
equation *)
eq = (1/(2*b^3))*(((Sin[b*(1 - z)]*Sin[b*z])/
Sin[b]) - ((Sinh[b*(1 - z)]*Sinh[b*z])/
Sinh[b]));(*Green's function *)
eq1[i_, j_] := (1 - (((m[[j]]*b^4)/(1 - m[[j]]/k[[i]]*b^4))*eq));
sol = ArrayReshape[Table[eq1[i, j], {i, 30}, {j, 30}], {900, 1, 1}]
NSolve[sol[[1, 1]] == 0 && 0 < b < 10]
Now, this sol contains 900 equation how to solve for first 5 roots of this equation? How to solve all the equations contained in the sol in one single shot?
NDEigensystem
instead? $\endgroup$