summaryrefslogtreecommitdiff
path: root/3863/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3863/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3863/CH1/EX1.1/Ex1_1.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3863/CH1/EX1.1/Ex1_1.sce b/3863/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..89f476e26
--- /dev/null
+++ b/3863/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,22 @@
+clear
+//
+//Given
+//Variable declaration
+L=150 //Length of the rod in cm
+D=20 //Diameter of the rod in mm
+P=20*10**3 //Axial pull in N
+E=2.0e5 //Modulus of elasticity in N/sq.mm
+
+//Calculation
+A=(%pi/4)*(D**2) //Area in sq.mm
+ //case (i):stress
+sigma=P/A //Stress in N/sq.mm
+ //case (ii):strain
+e=sigma/E //Strain
+ //case (iii):elongation of the rod
+dL=e*L //Elongation of the rod in cm
+
+//Result
+printf("\n Stress = %0.3f N/mm^2",sigma)
+printf("\n Strain = %0.6f ",e)
+printf("\n Elongation = %0.4f cm",dL)