summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.20/example2_20.sce
blob: 1dc43215d24d6a425a8e82ab84bfe7af0e07774e (plain)
1
2
3
4
5
6
7
8
9
10
11
clc 
// Given that
lambda = 6e-7 // wavelength of light in meter
b = 1.2e-6 // slit-width in meter
// Sample Problem 20 on page no. 2.46
printf("\n # PROBLEM 20 # \n")
m = 1 // for first minima
theta = asin((m * lambda) / b) // calculation for angular width of the central maxima in radian
theta_ = theta * (180 / %pi) // calculation for angular width of the central maxima in degree
printf("\n Standard formula used \n theta = asin((m * lambda) / b). \n")
printf("\n Angular width of the central maxima = %f degree ",2 * theta_)