//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)