Lecture 5
October 24, 2017
| By
Think-Pk
|
Matlab Code:
z = 0;
y1 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 0.25;
y2 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 0.5;
y3 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 1;
y4 = KA - KA* (1 + w).*exp(-w);
z = 2;
y5 = KA - KA *( (z + sqrt(z^2-1))*exp((-z +sqrt(z^2-1))*w)/(2*sqrt(z^2-1))+ (z - sqrt(z^2-1))*exp((-z -sqrt(z^2-1))*w)/(2*sqrt(z^2-1)) );
Source: https://www.math.ksu.edu/~albin/apps/mass_spring.html
z = 0;
y1 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 0.25;
y2 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 0.5;
y3 = KA - KA * exp (-z*w).* (z*sin(w*sqrt(1-z^2))/sqrt(1-z^2) + cos(w*sqrt(1-z^2)) );
z = 1;
y4 = KA - KA* (1 + w).*exp(-w);
z = 2;
y5 = KA - KA *( (z + sqrt(z^2-1))*exp((-z +sqrt(z^2-1))*w)/(2*sqrt(z^2-1))+ (z - sqrt(z^2-1))*exp((-z -sqrt(z^2-1))*w)/(2*sqrt(z^2-1)) );
Source: https://www.math.ksu.edu/~albin/apps/mass_spring.html
Mass-Spring System Simulation
Labels:Precision Engineering