summaryrefslogtreecommitdiff
path: root/866/CH14/EX14.1/14_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '866/CH14/EX14.1/14_1.sce')
-rwxr-xr-x866/CH14/EX14.1/14_1.sce39
1 files changed, 20 insertions, 19 deletions
diff --git a/866/CH14/EX14.1/14_1.sce b/866/CH14/EX14.1/14_1.sce
index 7ead5d32e..d92386d33 100755
--- a/866/CH14/EX14.1/14_1.sce
+++ b/866/CH14/EX14.1/14_1.sce
@@ -1,19 +1,20 @@
-clc
-//initialisation of variables
-d= 2 //m
-t= 20 //mm
-p= 1.5 //N/mm^2
-load= 2500 //KN
-alpha= 60 //degrees
-//CALCULATIONS
-Cs= (p*d*10^3)/(2*t)
-Ls= (p*d*10^3)/(4*t)
-Ds= (load*10^3)/(%pi*d*t*10^3)
-Ts= Ls+Ds
-sigman= (Ts*t*(cosd(90-alpha))^2+Cs*t*(cosd(alpha))^2)/t
-tab= Ts*sind(alpha)*cosd(alpha)-Cs*sind(alpha)*cosd(alpha)
-tmax= (Ts-Cs)/2
-//RESULTS
-printf ('direct stress= %.1f N/mm^2',sigman)
-printf (' \n Shear stress=%.1f N/mm^2',tab)
-printf (' \n maximum Shear stress=%.1f N/mm^2',tmax)
+clc
+clear
+//initialisation of variables
+d= 2 //m
+t= 20 //mm
+p= 1.5 //N/mm^2
+Load= 2500 //KN
+alpha= 60 //degrees
+//CALCULATIONS
+Cs= (p*d*10^3)/(2*t)
+Ls= (p*d*10^3)/(4*t)
+Ds= (Load*10^3)/(%pi*d*t*10^3)
+Ts= Ls+Ds
+sigman= (Ts*t*(cosd(90-alpha))^2+Cs*t*(cosd(alpha))^2)/t
+tab= Ts*sind(alpha)*cosd(alpha)-Cs*sind(alpha)*cosd(alpha)
+tmax= (Ts-Cs)/2
+//RESULTS
+printf ('direct stress= %.1f N/mm^2',sigman)
+printf (' \n Shear stress=%.1f N/mm^2',tab)
+printf (' \n maximum Shear stress=%.1f N/mm^2',tmax) \ No newline at end of file