blob: 8796e3db44d41e778b0a9a14c7a840b4ccb046a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clc
//
//
//
//Variable declaration
lambdaa=5000*10**-10 //Wavelength
theta=30 //Angular Width
dtheta=0.01
//Calculations
thetarad=((%pi/180)*(theta))
dlambda=((lambdaa*cos(thetarad))/(sin(thetarad)))*10**8
//Result
printf("\n The difference between the two wavelengths is %2.1f Angstrom",dlambda)
|