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/CH10/EX10.9 | |
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/CH10/EX10.9')
-rwxr-xr-x | 1898/CH10/EX10.9/Ex10_9.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1898/CH10/EX10.9/Ex10_9.sce b/1898/CH10/EX10.9/Ex10_9.sce new file mode 100755 index 000000000..cb3b0f6de --- /dev/null +++ b/1898/CH10/EX10.9/Ex10_9.sce @@ -0,0 +1,25 @@ +clear all; clc;
+
+disp("Scilab Code Ex 10.9 : ")
+
+//Given:
+E_st = 200*10^9; //GPa
+nu_st = 0.3; //Poisson's ratio
+ep1 = 272 *10^-6;
+ep2 = 33.8 *10^-6;
+
+//Solving for sigma using matrices:
+A = [1 -nu_st; -nu_st 1];
+b = [(ep1*E_st) ; (ep2*E_st)];
+sigma = A\b;
+
+sigma1= sigma(1)/(10^6);
+sigma2= sigma(2)/(10^6);
+
+//Display:
+
+printf('\n\nThe principal stresses at point A are = %1.0f MPa , %1.1f MPa',sigma1, sigma2);
+
+
+//--------------------------------------------------------------------------END--------------------------------------------------------------------------------------
+
|