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 /3456/CH2/EX2.2 | |
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 '3456/CH2/EX2.2')
-rw-r--r-- | 3456/CH2/EX2.2/Ex2_2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3456/CH2/EX2.2/Ex2_2.sce b/3456/CH2/EX2.2/Ex2_2.sce new file mode 100644 index 000000000..adbd12766 --- /dev/null +++ b/3456/CH2/EX2.2/Ex2_2.sce @@ -0,0 +1,13 @@ +//Example 2.2
+//State of Stress in three dimensions
+//Page No. 29
+clc;clear;close;
+
+s=poly(0,'s')
+A=[s-0,-240,0;-240,s-200,0;0,0,s+280]; //in Mpa
+p=determ(A);
+X=roots(p);
+for i=1:3
+ printf('\nsigma%i = %g MPa',i,X(i));
+end
+printf('\n\nLogic: The matrix provided in the book is a state of stress of a body which includes a combination of normal and shear stresses acting in a triaxial direction. So the determinant of the matrix results in the cubic equation in ""sigma"" which when solved gives the principal stresses');
|