summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.15/Ex1_15.sce
blob: 1b1bc836b6c8f849dd0d8e2447b92ac2e78bafe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 1_15
clc();
clear;
//To find the diameter of the 5th bright ring
n=5
lemda=5460                    //units in angstroam
lemda=5460*10^-8              //units in cm
u=1.50
f=400                        //units in cm
R=(u-1)*2*f
D=sqrt(2*(2*n-1)*lemda*R)
printf("The diameter of the 5th fringe %.2f mts",D)