diff options
author | prashantsinalkar | 2018-02-03 10:59:42 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 10:59:42 +0530 |
commit | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (patch) | |
tree | 612077a22c8142c0ae754ec11882a4e7d5dc25a4 /3776/CH2/EX2.6/Ex2_6.sce | |
parent | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (diff) | |
download | Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.gz Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.tar.bz2 Scilab-TBC-Uploads-d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059.zip |
Modified the code
Diffstat (limited to '3776/CH2/EX2.6/Ex2_6.sce')
-rw-r--r-- | 3776/CH2/EX2.6/Ex2_6.sce | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/3776/CH2/EX2.6/Ex2_6.sce b/3776/CH2/EX2.6/Ex2_6.sce index 844997aec..a5dcb9d0f 100644 --- a/3776/CH2/EX2.6/Ex2_6.sce +++ b/3776/CH2/EX2.6/Ex2_6.sce @@ -1,15 +1,15 @@ clear -dia = 50 //mm - diameter of aluminium -p = 100 // KN - instant force applid -dia_c = 0.1215 //mm- change in diameter +dia = 50 //mm - diameter of aluminium +p = 100 // KN - instant force applied +dia_c = 0.01215 //mm- change in diameter l_c = 0.219 //mm - change in length -l = 300 //mm - length -strain_dia = dia_c/dia // lateral strain -strain_l = l_c/l //longitudinal strain -po = strain_dia/strain_l // poission ratio -area = 3.14*dia*dia/4 //mm2 area -E = p*l/(area*l_c) //N/mm2 youngs modulus -printf("\n The lateral strain is: %0.3f no units",strain_dia) -printf("\n The longitudinal strain is: %0.3f no units",strain_l) -printf("\n The poissions ratio is: %0.3f no units",po) -printf("\n Youngs modulus: %0.2f N/sq.mm",E) +l = 300 //mm - length +strain_dia = -dia_c/dia // lateral strain +strain_l = -l_c/l //longitudinal strain +po = strain_dia/strain_l // Poisson ratio +area = 3.14*dia*dia/4 //sq.mm area +E = p*l/(area*l_c) //N/sq.mm youngs modulus +printf("\n The lateral strain is: %e mm/mm",strain_dia) +printf("\n The longitudinal strain is: %e no units",strain_l) +printf("\n The Poissons ratio is: %0.3f no units",po) +printf("\n Youngs modulus: %0.2f GPa",E) |