summaryrefslogtreecommitdiff
path: root/1205/CH19/EX19.1/S_19_1.sce
blob: 04c638b0065e6aea002f36f234f27936923e6fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc;
k1=4;//kN/m spring constant of spring 1
k2=6;//kN/m spring constant of spring 2
k=k1+k2;//kN/m spring constant of single equivalent spring 
k=k*1000;//N/m
Xm=40;//mm displacement
Xm=Xm/1000;//m
m=50;//kg
// period of vibration
Wn=sqrt(k/m);//rad/s angular velocity
Tn=2*%pi/Wn;//s, period of vibration
printf("Period of vibration= %.3f s\n",Tn);

//maximum velocity
Vm=Xm*Wn;//m/s
printf("Maximum velocity= %.3f m/s\n",Vm);

//Maximum acceleration
am=Xm*Wn^2;//m/s^2
printf("Maximum acceleration= %.2f m/S^2\n",am);