using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter35 { /// /// Example03: An Index of Refraction Measurement /// A beam of light of wavelength 550 nm traveling in air /// is incident on a slab of transparent material. The /// incident beam makes an angle of 40.0^{\circle} with the normal, /// and the refracted beam makes an angle of 26.0^{\circle} with the /// normal. Find the index of refraction of the material. /// public class Example03 { public Example03() { } private string result; public string Result { get{return result;} } public void Compute() { L.Optics obj = new L.Optics(); obj.AngleOfIncidence = 40.0*Math.PI/180.0; obj.AngleOfRefraction = 26.0*Math.PI/180.0; obj.IndexOfRefractionForMedium1 = 1.0; obj.FindIndexOfRefractionForMedium2(); result+=Convert.ToString(obj.IndexOfRefractionForMedium2); } } } //1.46630911818614