diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH2/EX2.5/Chapter2_Example5.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2741/CH2/EX2.5/Chapter2_Example5.sce')
-rwxr-xr-x | 2741/CH2/EX2.5/Chapter2_Example5.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2741/CH2/EX2.5/Chapter2_Example5.sce b/2741/CH2/EX2.5/Chapter2_Example5.sce new file mode 100755 index 000000000..f6e503e65 --- /dev/null +++ b/2741/CH2/EX2.5/Chapter2_Example5.sce @@ -0,0 +1,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)
|