summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH2/EX2.3/Ex2_3.sce')
-rw-r--r--3537/CH2/EX2.3/Ex2_3.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3537/CH2/EX2.3/Ex2_3.sce b/3537/CH2/EX2.3/Ex2_3.sce
new file mode 100644
index 000000000..5a0ce3188
--- /dev/null
+++ b/3537/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,11 @@
+//Example 2_3
+clc();
+clear;
+//To calculate the minimum number of lines
+lemda=5890 //units in angstrom
+lemda=5890*10^-8 //units in centimeters
+dlemda=6*10^-8 //units in centimeters
+k=2
+width=2.5 //units in centimeters
+n=(lemda/(k*dlemda))/width
+printf("no of lines per cm is %.1f",n)