blob: 422ca1ea82c4e328d16461eaab690bd2998b2fd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//
//
//Variable declaration
lamda=5*10**-5 //wavelength(cm)
k=2 //order
theta=30*%pi/180 //angle(radian)
//Calculation
e=k*lamda/sin(theta) //number of lines(cm)
n=1/e //number of lines per centimeter
//Result
printf("\n number of lines per centimeter is %0.3f ",n)
printf("\n answer given in the book is wrong")
|