summaryrefslogtreecommitdiff
path: root/1826/CH2/EX2.25/ex2_25.sce
blob: 22c78d2944851119419f68046dd1e4495e64a04e (plain)
1
2
3
4
5
6
7
8
// Example 2.25, page no-45
clear
clc
theta=12//in degrees
lam=2.82*10^-10//m
n=1
d=n*lam/(2*sin(theta*%pi/180))
printf("The interplanar spacing is %.3f *10^-10 m",d*10^10)