summaryrefslogtreecommitdiff
path: root/3705/CH8/EX8.4/Ex8_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3705/CH8/EX8.4/Ex8_4.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3705/CH8/EX8.4/Ex8_4.sce')
-rw-r--r--3705/CH8/EX8.4/Ex8_4.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3705/CH8/EX8.4/Ex8_4.sce b/3705/CH8/EX8.4/Ex8_4.sce
new file mode 100644
index 000000000..ec1510039
--- /dev/null
+++ b/3705/CH8/EX8.4/Ex8_4.sce
@@ -0,0 +1,17 @@
+
+clear//
+
+//Variable Declaration
+theta=(60*%pi)/180 //Angle in radians (Twice as declared)
+sigma_x=30 // Stress in x in MPa
+sigma_y=60 //Stress in y in MPa
+tau_xy=40 //Stress in MPa
+
+//Calcualtions
+sigma_xdash=0.5*(sigma_x+sigma_y)+0.5*(sigma_x-sigma_y)*cos(theta)+tau_xy*sin(theta) //Stress at x' axis in MPa
+sigma_ydash=0.5*(sigma_x+sigma_y)-0.5*(sigma_x-sigma_y)*cos(theta)-tau_xy*sin(theta) //Stress at y' axis in MPa
+tau_x_y=-0.5*(sigma_x-sigma_y)*sin(theta)+tau_xy*cos(theta) //Stress at x'y' in shear in MPa
+//Result
+printf("\n The new stresses at new axes are as follows")
+printf("\n sigma_x= %0.1f MPa sigma_y= %0.1f MPa",sigma_xdash,sigma_ydash)
+printf("\n And tau_xy= %0.0f MPa",tau_x_y)