summaryrefslogtreecommitdiff
path: root/3014/CH3/EX3.1/Ex3_1.sce
blob: 198388a30bace748409f495b1740b98a8659a273 (plain)
1
2
3
4
5
6
7
8
9
clc
//given that
d = 2.82 // crystal spacing in angstrom
n = 2 // order for longest passing wavelength
theta = 90 // angle for longest passing wavelength
printf("Example 3.1")
lambda = 2*d*sin(theta*%pi/180)/n // Calculation of longest wavelength

printf("\n Longest wavelength is %f angstrom. \n\n\n",lambda)