summaryrefslogtreecommitdiff
path: root/2780/CH2/EX2.28/Ex2_28.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2780/CH2/EX2.28/Ex2_28.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2780/CH2/EX2.28/Ex2_28.sce')
-rwxr-xr-x2780/CH2/EX2.28/Ex2_28.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2780/CH2/EX2.28/Ex2_28.sce b/2780/CH2/EX2.28/Ex2_28.sce
new file mode 100755
index 000000000..07d3d45d5
--- /dev/null
+++ b/2780/CH2/EX2.28/Ex2_28.sce
@@ -0,0 +1,13 @@
+clc
+//to calculate diameter
+//the difference of (n+p)th and nth dark ring is Dn+p^2-Dn^2=4nRlambda
+N=12 //where N=n+p
+n=4
+D12=0.7 //diameter of 12th dark ring in cm
+D4=0.4 //diameter of 4th dark ring in cm
+//D12^2-D4^2=4pRlambda where p=8 ----eq(1)
+//D20^2-D4^2=4pRlambda where p=16 -----eq(2)
+//divide eq(2) by eq(1) ,we get
+D20=sqrt((2*D12^2)-D4^2)
+disp("the diameter of 20th dark ring is D20="+string(D20)+"cm")
+