blob: 9236a9545ab8e2ae493dcef963df6a1fbf29de16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
// Given that
d = 4e-4 // separation between slits in meter
b = 8e-5 // slit-width in meter
// Sample Problem 23 on page no. 2.47
printf("\n # PROBLEM 23 # \n")
r = (b + d) / b // calculation for ratio of n with m
m1 = 1
n1 = r * m1 // calculation for Missing orders
m2 = 2
n2 = r * m2 // calculation for Missing orders
m3 = 3
n3 = r * m3 // calculation for Missing orders
printf("\n Standard formula used \n r = (b + d) / b. \n n = r * m. \n")
printf("\n Missing orders = %d,%d,%d,......",n1,n2,n3)
|