blob: 37961fd777e1ddadad6b39abd9019d81f33e7957 (
plain)
1
2
3
4
5
6
7
8
9
|
clc
//given that
d = 2.5 // crystal spacing in angstrom
n = 1 // order for longest passing wavelength
theta = 90 // angle for longest passing wavelength
printf("Example 3.6")
lambda = 2*d*sin(theta*%pi/180)/n // Calculation of longest wavelength
printf("\nLongest wavelength is of %d angstrom. \n\n\n",lambda)
|