summaryrefslogtreecommitdiff
path: root/1271/CH2/EX2.5/example2_5.sce
blob: 40b432468f982c0a7d68703128c4cfbad9fff0b4 (plain)
1
2
3
4
5
6
7
8
9
10
clc 
// Given that
lambda = 5e-7 // wavelength of light in meter
d = 1e-3 // diameter of the first ring of zone plate in meter
// Sample Problem 5 on page no. 2.39
printf("\n # PROBLEM 5 # \n")
n = 1 // no. of half period zone
D = (d^2) / (4 * lambda * n) // calculation for distance of screen from opening
printf("\n Standard formula used \n D = (d^2) / (4 * lambda * n). \n")
printf("\n Distance of screen from opening = %f meter ",D)