summaryrefslogtreecommitdiff
path: root/3753/CH2/EX2.6/Ex2_6.sce
blob: dee5aa0caef33c26c61d0f1adcfd2f92b514df9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example number 2.6, Page number 2.34¶


clc;clear;close

// Variable declaration
theta=60*(%pi/180)        // When the angle of refraction is 30degrees, angle of reflection will be 60degrees

// Calculation
mu=tan(theta) // unitless

// Result
printf("Refractive index of medium=%0.3f",mu)