summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.34/Ex1_34.sce
blob: 24ff6bf2d7df213dd68d6fc7b5c47c19e7326fed (plain)
1
2
3
4
5
6
7
8
9
10
//Example 1_34
clc();
clear;
//To calculate the refractive index of the liquid
D1=1.40                          //units in centimeters
D1=1.40*10^-2                    //units in meters
D2=1.27                          //units in centimeters
D2=1.27*10^-2                    //units in meters
u=(D1/D2)^2
printf("Refractive index of the liquid is %.3f",u)