blob: 16a6493bd44dded93402cdb188e681f2ac84bc9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
// Given that
lambda = 5.89e-7 // wavelength of light in meter
b = 1e-3 // slit-width in meter
// Sample Problem 13 on page no. 2.42
printf("\n # PROBLEM 13 # \n")
m = 1 // for first minima
theta = asin((m * lambda) / b) // calculation for angular spread of the central maxima in radian
theta_ = theta * (180 / %pi) // calculation for angular spread of the central maxima in degree
printf("\n Standard formula used \n theta = asin((m * lambda) / b).\n")
printf("\n Angular spread of the central maxima = %f degree ",2 * theta_)
|