From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2741/CH2/EX2.4/Chapter2_Example4.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 2741/CH2/EX2.4/Chapter2_Example4.sce (limited to '2741/CH2/EX2.4') 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) -- cgit