clc;
clear;
close all;

refractive_media1 = input('Input first refractive media value: ');
refractive_media2 = input('Input second refractive media value: ');
Angle_of_entrance = input('Input the angle your light is entering from relative to your first media: ');

Angle_of_refraction = abs((asin(refractive_media1*sin(Angle_of_entrance)/refractive_media2))*180/pi);

disp('This is your refraction angle in degrees.'); disp(Angle_of_refraction)