summaryrefslogtreecommitdiff
path: root/3537/CH2/EX2.19/Ex2_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3537/CH2/EX2.19/Ex2_19.sce')
-rw-r--r--3537/CH2/EX2.19/Ex2_19.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/3537/CH2/EX2.19/Ex2_19.sce b/3537/CH2/EX2.19/Ex2_19.sce
new file mode 100644
index 000000000..28cc60d3c
--- /dev/null
+++ b/3537/CH2/EX2.19/Ex2_19.sce
@@ -0,0 +1,9 @@
+//Example 2_19
+clc();
+clear;
+//To calculate the wavelength of the spectral line
+n=2
+N=4250 //units in centimeters
+theta=30 //units in degrees
+lemda=(((1/N)*sin(theta*%pi/180))/n)*10^8
+printf("The wavelength of the spectral line is %.0f angstrom",lemda)