summaryrefslogtreecommitdiff
path: root/1958/CH10/EX10.2/Chapter10_example2.sce
blob: 45ac6fdfd2b1880bf5d0c0e0a8a9f733208418f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//Input data
d1=6000//Diffraction grating have number of lines per cm
q=50//Diffracted second order spectral line observed in degrees
n=2//Second order

//Calculations
w=(sind(q)/(d1*n))*10^8//Wavelength of radiation in Angstrom

//Output
printf('Wavelength of radiation is %3.1f Angstrom',w)