summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.4/Ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH2/EX2.4/Ex2_4.sce')
-rw-r--r--3537/CH2/EX2.4/Ex2_4.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3537/CH2/EX2.4/Ex2_4.sce b/3537/CH2/EX2.4/Ex2_4.sce
new file mode 100644
index 000000000..52357fde9
--- /dev/null
+++ b/3537/CH2/EX2.4/Ex2_4.sce
@@ -0,0 +1,14 @@
+//Example 2_4
+clc();
+clear;
+//To calculate the total number of lines for the first order
+lemda=5890 //units in angstrom
+lemda=5890*10^-8 //units in centimeters
+dlemda=6*10^-8 //units in centimeters
+k=1
+N=lemda/(k*dlemda)
+printf("Total no. of lines for the first order is %.0f",N)
+//To calculate the total number of lines for the second order
+k=2
+N=lemda/(k*dlemda)
+printf("\nTotal no. of lines for the second order is %.0f",N)