As I am trying to solve one problem for my project, I am facing difficulties to solve the loop.
I am looking for Buckling Pressure for different L.b and K value.
Can you please help me out.
Thank you for your kind response.
I was trying to make a loop function after your modification.
Without loop function, I am getting the answer where as same formula with loop function not giving me the result
Can you look into it.
The error message is one of the few that actually has a valid meaning: the units in your equation don't balance, the first term is energy, the second is force. When I correct the formula (to agree with "Model"):
Fred already pointed you to the two culprits.
Here is a utility routine to create a vector using the same arguments (first, second last) as used in creating the range and a way to avoid invalid indices in the creation of P.