summaryrefslogtreecommitdiff
path: root/1172/CH3/EX3.10.1/Example3_10a.sce
blob: 01cdabbb5aa42b34655b20238dd75158b8764177 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//Given that
lambda = 0.52 // wavelength in angstrom
theta = 5 // in degree
n = 1 // order of brags reflection
//Sample Problem 10 a  Page No. 139
printf("\n\n\n # Problem 10 a # \n")
printf("\n Standard formula Used \n 2 * d * sin(theta) = n * lambda ")
d = n * lambda / (2 * sin (theta * %pi / 180))
//calculation of separation between adjacent layers of crystals
printf ("\n Separation between adjacent layers of crystals is %f angstrom. ", d)