summaryrefslogtreecommitdiff
path: root/884/CH11/EX11.4/Example11_4.sce
blob: dfeaf3e22b9d747e448f26830e5cfb89a7f065c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//diffraction

clear;
clc;

printf("\t Example 11.4\n");

n=1;
lambda=154;//wavelength, pm
theta=19.3;//angle of reflection, degree
d=n*lambda/(2*sin(theta*%pi/180));//spacing between the planes

printf("\t the spacing between planes is : %4.0f pm\n",d);

//End