diff options
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) |