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 /3869/CH1/EX1.52/Ex1_52.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2 Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip |
Diffstat (limited to '3869/CH1/EX1.52/Ex1_52.sce')
-rw-r--r-- | 3869/CH1/EX1.52/Ex1_52.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/3869/CH1/EX1.52/Ex1_52.sce b/3869/CH1/EX1.52/Ex1_52.sce new file mode 100644 index 000000000..bb16cbea1 --- /dev/null +++ b/3869/CH1/EX1.52/Ex1_52.sce @@ -0,0 +1,21 @@ +clear +// +// +// + +//Variable declaration +m1=15 +n=5 +m2=25 +D15=0.62 //diameter of 15th ring(cm) +D5=0.3 //diameter of 5th ring(cm) + +//Calculation +x=D15**2-D5**2 +y=m1-n +z=m2-n +r=4*z/(4*y) +D25=sqrt((r*x)+(D5**2)) //diameter of 25th ring(cm) + +//Result +printf("\n diameter of 25th ring is %0.3f cm",D25) |