summaryrefslogtreecommitdiff
path: root/3669/CH14/EX14.4/4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3669/CH14/EX14.4/4.sce')
-rw-r--r--3669/CH14/EX14.4/4.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3669/CH14/EX14.4/4.sce b/3669/CH14/EX14.4/4.sce
new file mode 100644
index 000000000..3e8fe2283
--- /dev/null
+++ b/3669/CH14/EX14.4/4.sce
@@ -0,0 +1,12 @@
+
+//Variable declaration
+D15=0.59*10**-2; //diameter of 15th ring(m)
+D5=0.336*10**-2; //diameter of 5th ring(m)
+R=1; //radius(m)
+m=10;
+
+//Calculation
+lamda=((D15**2)-(D5**2))/(4*m*R); //wavelength of light(m)
+
+//Result
+printf('wavelength of light is %0.3f angstrom \n',int(lamda*10**10)) \ No newline at end of file