summaryrefslogtreecommitdiff
path: root/1958/CH5/EX5.1/Chapter5_example1.sce
blob: 11c06ca0d68e4701754bb07e4af477da77163f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Input data
m=1//Mass of torsional pendulum in kg
R=0.06//Radius of torsional pendulum in m
l=1.2//Length of the wire in m
r=0.0008//Radius of wire in m
S=(9*10^9)//Modulus of rigidity of the material in N/m^2

//Calculations
I=(1/2)*m*R^2//Moment of inertia in kg.m^2
C=(3.14*S*r^4)/(2*l)//Couple per unit twist in N.m
T=2*3.14*sqrt(I/C)//Period of pendulum in s

//Output
printf('Period of pendulum is %3.1f s',T)