where f frequency, mass of the pendulum, \'m g acceleration due to gravity, LE d
ID: 2081418 • Letter: W
Question
where f frequency, mass of the pendulum, 'm g acceleration due to gravity, LE distance from the pivot point to the center of gravity of the pendulum, and inertia. Use MATLAB ® 's symbolic capability to solve for the length L. 6. p) Let the mass, inertia, and frequency of the pendulum in the previous problem be, respectively, m 10 kg 0.2 s-1 f 60 kg m/s. If the pendulum is on the earth (g 9.8 m/s2) what is the length from the pivot point to the center of gravity? (Use the subs function to solve this problem.)Explanation / Answer
code uses symbolic capability to solve
clc
close all;
syms m g f I L;%use symbolic variable
m=input('enter the mass in kg = ');%enter the value of mass
f=input('enter the frequency = ');
g=input('enter the acceleration due to gravity = ');
I=input('enter the moment of inertia in kg m/s = ');
eqn=sqrt(m*g*L/I)-(2*pi*f)==0;%writing the equation
sol=(solve(eqn,L));%solve the equation using symbolic capability
soln=vpa(sol,3)%convert symbolic value to numeric value upto 3 digit
length is 0.967 in meter by running the code after entering the values given in the question
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.