blob: 4e96a940c2cb18525016bb9c1aadb3773b45a6cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear
//
//
//
//Variable declaration
lamda=6500 //wavelength(m)
theta=30*%pi/180 //angle(radian)
//Calculation
a=lamda/sin(theta) //value of slit width(angstrom)
//Result
printf("\n value of slit width is %0.0f angstrom",a)
|