summaryrefslogtreecommitdiff
path: root/1376/CH12/EX12.5/12_5.sci
blob: 2595dbfa01f281858f8069d505559e3fda699bf7 (plain)
1
2
3
4
5
6
7
8
9
10
//12.5
clc;
k=4*10^3;
dx=0.04;
m=0.1;
acc=k*dx/m;
accg=acc/9.8;
printf("acceleration=%.2f g",accg)
fn=(1/2*%pi)*(k/m)^0.5;
printf("\nNatural Frequency=%.2f Hz",fn)