diff options
Diffstat (limited to '1898/CH2/EX2.1/Ex2_1.sce')
-rwxr-xr-x | 1898/CH2/EX2.1/Ex2_1.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/1898/CH2/EX2.1/Ex2_1.sce b/1898/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..b59ad715a --- /dev/null +++ b/1898/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,30 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.1 : ")
+
+//Given:
+e_z= 4;
+ab = 0.200; //m
+
+
+//Calculations:
+
+//Part a)
+
+z=integrate('1+(40*10^-3)*(sqrt(z))','z',0,ab); //Strain formula for short line segment = delta(sdash) =(1+e_z)delta(s)
+deltaB= z-ab;
+deltaB_mm= deltaB*1000;
+
+//Part b)
+
+e_avg = deltaB/ab;// Normal strain formula : e = (delta(sdash) -delta(s))/delta(s)
+
+//Display:
+
+
+printf("\n\nThe value of integration is =%10.5f m",z);
+printf("\nThe displacement at the end of the rod is = %0.2f mm",deltaB_mm);
+printf("\nThe average normal strain in the rod is =%10.4f mm/mm",e_avg);
+
+//-------------------------------------------------------------------------END----------------------------------------------------------------------------------
+
|