summaryrefslogtreecommitdiff
path: root/2780/CH3/EX3.17/Ex3_17.sce
blob: 43f1b6dd21318791ae8fce9d0c93ec5deb85edbd (plain)
1
2
3
4
5
6
7
clc
//to calculate angle of diffraction 
n=1 //order
lambda=5000*10^-8             //wavelength of light in cm
eplusd=1/5000      // in cm
theta=asind(n*lambda/(eplusd))
disp("angle of diffraction for maximum intensity in the first order is theta="+string(theta)+"degree")