summaryrefslogtreecommitdiff
path: root/3411/CH1/EX1.4.u1/Ex1_4_u1.sce
blob: 027bb87855e490f16f698aa79e80af2d727fd4f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 1_4_u1
clc();
clear;
//To calculate thickness of plate
//t=(n*lamda)/(u-u1)
n=5
u=1.7
u1=1.4
lamda=4800        //units in armstrongs
lamda=lamda*10^-10   //units in mts
t=(n*lamda)/(u-u1)       //units in mts
printf("Thickness of glass plate is %.6fmts",t)
//In text book the answer is printed wrong as 8*10^-8 mts     
//the correct answer is 8*10^-6   mts