summaryrefslogtreecommitdiff
path: root/1949/CH1/EX1.29/1_29.sce
blob: bbe75b9163c7a68094b1970e0def28fcd4649b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Chapter-1,Example 1_29,Page 1-50
clc()

//As Dn^2=4*n*R*lam.
//thus, Dn is directly proportional to sqaure root of n
D5=sqrt(5)     //D5 is directly proportional to sqaure root of 5
D4=sqrt(4)     //D4 is directly proportional to sqaure root of 4
k1=D5-D4
printf('Separation between D5 and D4 is directly proportional to =%.3f \n',k1)

D80=sqrt(80)     //D80 is directly proportional to sqaure root of 80
D79=sqrt(79)     //D79 is directly proportional to sqaure root of 79
k2=D80-D79
printf(' Separation between D80 and D79 is directly proportional to =%.3f \n \n',k2)

printf(' Thus, (D80-D79) < (D5-D4).\n Hence proved.')