blob: e915432a48e7567765cd75fe82a7577589ccc67d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//
//
//
//Variable declaration
lambdaa=6000*10**-8 //Wavelength
n=3
invde=200 //inverse of diffraction element
//Calculations
sinetheta=(n*lambdaa*invde)
thetarad=asin(sinetheta)
theta=(180/%pi)*(thetarad)
//Result
printf("\n The Angle of Diffraction is %0.5f degrees",theta)
|