summaryrefslogtreecommitdiff
path: root/1985/CH2/EX2.3/Chapter2_example3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1985/CH2/EX2.3/Chapter2_example3.sce
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 '1985/CH2/EX2.3/Chapter2_example3.sce')
-rwxr-xr-x1985/CH2/EX2.3/Chapter2_example3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1985/CH2/EX2.3/Chapter2_example3.sce b/1985/CH2/EX2.3/Chapter2_example3.sce
new file mode 100755
index 000000000..bf0ccb6b4
--- /dev/null
+++ b/1985/CH2/EX2.3/Chapter2_example3.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Input data
+d=[6,6,2]//Dimensions of the rectangular solid in cm
+F=0.3//Force applied in N
+d1=5//Displacement relative to the lower surface in mm
+
+//Calculations
+s=(F/(d(1)*d(2)*10^-4))//Shear stress in N/m^2
+q=(d1*10^-3)/(d(3)*10^-2)//Shear strain
+rm=(s/q)//Rigidity modulus in N/m^2
+
+//Output
+printf('Shearing stress is %3.2f N/m^2 \n Shear strain is %3.2f \n Rigidity modulus is %3.2f N/m^2',s,q,rm)