I am solving the free vibration of a beam with partially elastic support. I have to solve the following equation
2B^3*Cosh(BL)*Cos(x)-4(K^2/B^3)*Sinh(BL)*Sin(BL)-4K*Sinh(BL)*Cos(BL)+4K*Cosh(BL)*Sin(BL)-2B^3 = 0
K
and L
are constant and B
is the variable. I need roots of B.
I evaluated the following expression:
FindRoot[2*B^3*Cosh[B*L]*Cos[B*L] - 4*(K^2/B^3)*Sinh[B*L]*Sin[B*L] - 4*K*Sinh[B*L]*Cos[B*L] + 4*K*Cosh[B*L]*Sin[B*L] - 2*B^3, {B,4 \[Pi]}]
It dose not give a solution — it gives the error:
FindRoot::nlnum: The function value {-3968.8+3968.8 Cos[12.5664 L] Cosh[12.5664 L]+4. K Cosh[12.5664 L] Sin[12.5664 L]-4. K Cos[12.5664 L] Sinh[12.5664 L]-0.00201572 K^2 Sin[12.5664 L] Sinh[12.5664 L]} is not a list of numbers with dimensions {1} at {B} = {12.5664}.
I am a Mathematica beginner and an answer will be very helpful to me.
FindRoot
is a numerical solver. You should give values to the constantsK
andL
before you use it. Also avoid using uppercase single-letter variable names, as many of them are reserved and may lead to conflicts. $\endgroup$Solve
orReduce
then, perhaps with some restrictions since your equations contain periodic functions, but beware: the fact that you want an analytical solution does not imply that one exists... $\endgroup$