blob: 85daa3b73ff53c832b638c21771c67fdfb846cb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Given that
l = 405*10^-9 //in meter
d = 19.44*10^-6 //in meter
a = 4.050*10^-6 //in meter
//Sample Problem 37-4a
printf("**Sample Problem 37-4a**\n")
n = floor(d/a)
printf("The number of bright fringes are %d\n", 2*n+1)
//Sample Problem 37-4b
printf("\n**Sample Problem 37-4b**\n")
num = ceil(2*d/a)
printf("The number of bright fringes within either of the first side peak is %d", num/2 - 1)
|