blob: ab53d700510c6d3d0dd6f274ae7184dad8f0dd7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//
//
//
//Variable declaration
x=15 //distance(cm)
d=0.005 //diameter(cm)
lamda=6000*10**-8 //wavelength(cm)
//Calculation
alpha=d/x //angle(radian)
beta1=lamda/(2*alpha) //fringe width(cm)
//Result
printf("\n fringe width is %0.3f cm",beta1)
|