summaryrefslogtreecommitdiff
path: root/2741/CH2/EX2.5/Chapter2_Example5.sce
blob: f6e503e656d8dcd929f856dae38b1026d5cfd29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
clc
clear
//Input data
d=10^-3;//The diameter of a steel wire in m
t=20;//The difference in the temperature in degree centigrade 
y=2*10^11;//The youngs modulus of a steel wire in newtons/m^2
a=12*10^-6;//The coefficient of linear expansion of steel wire in per degree centigrade
pi=(22/7);//Mathematical constant value

//calculations
A=(pi*d^2)/4;//The cross sectional area of the steel wire in m^2
F=(y*a*t*A)/(9.8);//Force required to maintain the original length in kg wt

//output
printf('Force required to maintain the original length is %3.3f kg wt ',F)