blob: 20a4d836b8632f59745046a68187c8902d9a8ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
// Given that
N = 425000 // no. of lines in plane transmission grating per meter
theta = %pi / 6 // angle at which second order spectral line is observed in radian
n = 2 // order of spectral line
// Sample Problem 25 on page no. 2.48
printf("\n # PROBLEM 25 # \n")
lambda = sin(theta) / (2 * N) // calculation for wavelength of light
printf("\n Standard formula used \n lambda = sin(theta) / (2 * N). \n")
printf("\n Wavelength of light = %e meter. ",lambda)
|