Assignment 5 Alain Bezing
Assignment 5 Alain Bezing
% Given parameters
psi = 1; % Example value, replace with your actual psi
dx1 = 1/3;
dx2 = 1/6;
2) Consider the differential equation: f +(1+ {ψ} over {10.3} )f'-f= on 0 < x < 2 with the
df
|
following boundary conditions: f ( 0 )=−1 and dx =1+ 15 .
x=2
ψ
% Given parameters
psi = 1; % Example value, replace with your actual psi
dx1 = 1/3;
dx2 = 1/6;
3) Consider a string (or flexible cable) with a weight attached to the end. Use second-order
finite difference equations to find approximations for the frequencies of the first and
second modes of natural vibration. Use the following:
L – string length = (1.0+/10.3) m
mc – mass of the string = 2.0 g
mp – mass of the weight = (1 + /10.3) g
x = (1.0+/10.3) /3 m.
f1 ≅ ________ Hz (+ 0.1%)
f2 ≅ ________ Hz (+ 0.1%)
% Given parameters
psi = 1; % Replace with the actual value of ψ
L = 1.0 + psi / 10.3;
mc = 2.0; % Total mass of the string in grams
mp = 1 + psi / 10.3; % Mass of the weight in grams
delta_x = L / 3;
n = round(L / delta_x); % Number of segments
m_segment = mc / n; % Mass per segment