blob: f38bc4bcc0392d3058cf47395ad7429de6e893d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//given
//page no 5
clc;
clear;
n1=1; //refractive index of air
n2=1.56; //refractive index of medium
w1=60; //in deg C
//using snell's law
a= n1*sind(w1)/n2; //a=sin(w1)
w2=asind(a); //in degree
printf("Angle of refraction is %0.2f degree\n ",w2);
B=w1-w2; //in degree
printf("Angle of deviation is %0.1f degree\n ",B)
// The answer doesn't match because of priting errorsin calculation as sin(608)
|