blob: 337b3fd003514a09607fc4ec44ddf6217011199d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clc
//
//
//
//Variable declaration
lambdaa=5000*10**-8 //Wavelength
invde=6000 //Diffraction element inverse
//Calculations
sinetheta1=lambdaa*invde
sinetheta3=lambdaa*invde*3
theta1=(180/%pi)*(asin(sinetheta1))
theta3=(180/%pi)*(asin(sinetheta3))
deltheta=theta3-theta1
//Result
printf("\n The Angular Difference is %2.1f Degrees",deltheta)
|