summaryrefslogtreecommitdiff
path: root/278/CH4/EX4.3/ex_4_3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /278/CH4/EX4.3/ex_4_3.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '278/CH4/EX4.3/ex_4_3.sce')
-rwxr-xr-x278/CH4/EX4.3/ex_4_3.sce39
1 files changed, 19 insertions, 20 deletions
diff --git a/278/CH4/EX4.3/ex_4_3.sce b/278/CH4/EX4.3/ex_4_3.sce
index 1467c605c..8f502e032 100755
--- a/278/CH4/EX4.3/ex_4_3.sce
+++ b/278/CH4/EX4.3/ex_4_3.sce
@@ -1,21 +1,20 @@
-//to find 1.)diameter of the rods,2.)extension in each rod in the length of 2.5m
-clc
-//solution
-//given
-P=3.5*10^6//N//load applied
-f1=85//(N/mm^2)// safe stress
-E=210*10^3//(N/mm^2)//young's modulus
-l=2.5*10^3//mm
-pi=3.14
-//1)diameter of rod(d)
-//let d be diameter of rods in mm
-//since both rods carries equal load ,therefore load on single rod is
-P1=P/2//N
-d=sqrt(4*P1/(f1*pi))//using f1=P/A//mm
-printf("the diameter of rods is,%f mm\n",d)
-//2)extension in rod
-//let x be extension in rod
-//E=(P1*l)/(A*x)
- //P1/A=f1
-x=(f1*l)/E
+clc
+//solution
+//given
+P=3.5*10^6//N//load applied
+f1=85//(N/mm^2)// safe stress
+E=210*10^3//(N/mm^2)//young's modulus
+l=2.5*10^3//mm
+pi=3.14
+//1)diameter of rod(d)
+//let d be diameter of rods in mm
+//since both rods carries equal load ,therefore load on single rod is
+P1=P/2//N
+d=sqrt(4*P1/(f1*pi))//using f1=P/A//mm
+printf("the diameter of rods is,%f mm\n",d)
+//2)extension in rod
+//let x be extension in rod
+//E=(P1*l)/(A*x)
+ //P1/A=f1
+x=(f1*l)/E
printf("the extension of rod is,%f mm",x) \ No newline at end of file