diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3863/CH1/EX1.1/Ex1_1.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3863/CH1/EX1.1/Ex1_1.sce')
-rw-r--r-- | 3863/CH1/EX1.1/Ex1_1.sce | 22 |
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) |