summaryrefslogtreecommitdiff
path: root/1985/CH2/EX2.2/Chapter2_example2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1985/CH2/EX2.2/Chapter2_example2.sce')
-rwxr-xr-x1985/CH2/EX2.2/Chapter2_example2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1985/CH2/EX2.2/Chapter2_example2.sce b/1985/CH2/EX2.2/Chapter2_example2.sce
new file mode 100755
index 000000000..477e32bab
--- /dev/null
+++ b/1985/CH2/EX2.2/Chapter2_example2.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Input data
+l=2.75//Length of steel wire in m
+d=(1*10^-3)//Diameter of the wire in m
+M=1//Applied load in kg
+Y=(2*10^11)//Youngs modulus in N/m^2
+
+//Calculations
+T=(M*9.8)//Tension in N
+dl=((T*l)/(3.14*(d/2)^2*Y))/10^-4//Increase in length in m *10^-4
+
+//Output
+printf('The increase in length of wire is %3.5f *10^-4 m',dl)