summaryrefslogtreecommitdiff
path: root/564/CH1/EX1.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /564/CH1/EX1.4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '564/CH1/EX1.4')
-rwxr-xr-x564/CH1/EX1.4/1_04.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/564/CH1/EX1.4/1_04.sce b/564/CH1/EX1.4/1_04.sce
new file mode 100755
index 000000000..7100dce78
--- /dev/null
+++ b/564/CH1/EX1.4/1_04.sce
@@ -0,0 +1,13 @@
+pathname=get_absolute_file_path('1_04.sce')
+filename=pathname+filesep()+'1_04data.sci'
+exec(filename)
+Ex= (1/E)*(Sx-v*Sy);//εx
+Ey= (1/E)*(Sy-v*Sx);//εy
+Ez= (1/E)*(0-v*(Sx+Sy));//εz
+printf("\nεx: %f",Ex);
+printf("\nεy: %f",Ey);
+printf("\nεz: %f",Ez);
+Tmax=(Sx-Sy)/2;//τmax
+Gmax=2*(1+v)*Tmax/E;//γmax
+printf("\nγmax: %f",Gmax);
+printf("\nτmax: %f N/mm^2",Tmax); \ No newline at end of file