summaryrefslogtreecommitdiff
path: root/3456/CH2/EX2.2
diff options
context:
space:
mode:
Diffstat (limited to '3456/CH2/EX2.2')
-rw-r--r--3456/CH2/EX2.2/Ex2_2.sce13
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');