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 /1898/CH2/EX2.3 | |
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 '1898/CH2/EX2.3')
-rwxr-xr-x | 1898/CH2/EX2.3/Ex2_3.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/1898/CH2/EX2.3/Ex2_3.sce b/1898/CH2/EX2.3/Ex2_3.sce new file mode 100755 index 000000000..5b17994c3 --- /dev/null +++ b/1898/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,32 @@ +clear all; clc;
+
+disp("Scilab Code Ex 2.3 : ")
+
+//Given:
+
+ab= 250; //mm
+bbdash_x = 3; //mm
+bbdash_y = 2; //mm
+ac = 300; //mm
+
+//calculations:
+
+//Part(a)
+abdash = sqrt((ab - bbdash_y)^2 + (bbdash_x)^2); //Pythagoras theorem
+avg_normal_strain = (abdash-ab)/ab;
+
+//Part(b)
+gamma_xy = atan(bbdash_x/(ab - bbdash_y)); //shear strain formula
+
+//Display:
+
+printf("\n\nThe average normal strain along AB is =%10.5f mm/mm",avg_normal_strain);
+printf("\nThe average shear strain = %10.5f rad",gamma_xy);
+
+//--------------------------------------------------------------------END-----------------------------------------------
+
+
+
+
+
+
|