blob: c211b994b0bcf807e960ba03024cb4a6d934eed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Example 1.5
clc();
clear;
//To find the refractive index of coil
volume=0.2 //units in CC
thickness=volume/(100*100) //units in cm
n=1
lamda=5.5*10^-5 //units in cm
r=0
u=(n*lamda)/(2*thickness*cos(r))
printf("Refractive index of oil is %.3f",u)
|