blob: 5dbb133ca66aa9c10cfea3da9f2fb3e65fe87dbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
//
//
//
//Variable declaration
n=2 //order of spectral line
theta=30 //Angular Width
invde=5000 //Inverse of diffraction element
//Calculations
thetarad=(%pi/180)*(theta)
sinetheta=sin(thetarad)
lambdaa=((sinetheta)/(n*invde))*10**8
//Result
printf("\n The Wavelength is %i Angstrom",lambdaa)
|