blob: a59904c3811802ad1d024e5f05a6ee47183b89d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//clc();
clear;
// To calculate the intensity ratio of bright and dark fringes
I1=1;
I2=25;
// Intensity is directly proportional to square of the amplitude
A1=sqrt(I1);
A2=sqrt(I2);
Imax=(A1+A2)^2;
Imin=(A1-A2)^2;
I=Imax/Imin;
printf("The intensity ratio of bright and dark fringes is %f",I);
|