blob: e653a892ffc7cdd2377b8bfc2f7d7286ba864ae4 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 5_23
clc();
clear;
//To find the interplanar spacing
n=2
lamda=0.12 //units in nm
theta=28 //units in degrees
d=(n*lamda)/(2*sin(theta*%pi/180))
printf("Interplanar spacong d=%.2f nm",d)
|