summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.33/Ex1_33.sce
blob: a1b223cc70ae74c1ef81d9e0d89c3c76fe3df237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 1_33
clc();
clear;
//To calculate the refractive index of the liquid
lemda=5.895*10^-7                    //units in meters
D=0.3                               //units in centimeters
D=0.3*10^-2                         //units in meters
R=100                               //units in centimeters
R=100*10^-2                        //units in meters
n=5
u=(4*R*n*lemda)/D^2
printf("The refractive index of the liquid is %.3f",u)