diff options
Diffstat (limited to '2741/CH2/EX2.4/Chapter2_Example4.sce')
-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)
|