summaryrefslogtreecommitdiff
path: root/3537/CH1/EX1.48/Ex1_48.sce
blob: c4b842cb1a9fb7be4c20bb71e93c2a5627536822 (plain)
1
2
3
4
5
6
7
8
//Example 1_48
clc();
clear;
//To calculate the refractive index of the liquid
D8=1.42                     //units in cm
d8=1.25                    //units in cm
u=(D8)^2/(d8)^2
printf("The refractive index of the liquid is %.2f",u)