summaryrefslogtreecommitdiff
path: root/1739/CH1/EX1.5/Exa1_5.sce
blob: 5728b5541823ca8ae6885f8e736bcbe9e27ec654 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Exa 1.5
clc;
clear;
close;
//Given data :
format('v',5);
c=3*10^8;//in m/s
v=1.1*10^8;//in m/s
//Formula : velocity_of_light_in_medium=velocity_of_light_in_free_space/Refractive_Index;
n=c/v;//in m/s
disp(n,"Refractive Index of medium : ");