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.4 | |
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.4')
-rwxr-xr-x | 2741/CH2/EX2.4/Chapter2_Example4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2741/CH2/EX2.4/Chapter2_Example4.sce b/2741/CH2/EX2.4/Chapter2_Example4.sce new file mode 100755 index 000000000..9cbfc95fc --- /dev/null +++ b/2741/CH2/EX2.4/Chapter2_Example4.sce @@ -0,0 +1,14 @@ +clc
+clear
+//Input data
+A=2*10^-6;//The cross section area of a uniform rod in m^2
+t=20;//The change in temperature in degree centigrade
+y=10^11;//The youngs modulus of the rod in newtons/m^2
+a=12*10^-6;//The coefficient of linear expansion of rod in per degree centigrade
+
+//Calculations
+F=y*a*t*A;//The force required to prevent it from expanding in newtons
+E=(1/2)*y*a*t*a*t;//The energy stored per unit volume in j/m^3
+
+//Output
+printf('The force required to prevent the rod from expanding is %3.0f newtons \n The Energy stored per unit volume is %3.0f j/m^3',F,E)
|