using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter35 { /// /// Example08: A View from the Fish's Eye /// Find the critical angle for an air-water boundary. /// (The index of refraction of water is 1.33.) /// public class Example08 { public Example08() { } private string result; public string Result { get{return result;} } public void Compute() { L.Optics obj = new L.Optics(); obj.IndexOfRefractionForMedium1 = 1.33; obj.IndexOfRefractionForMedium2 = 1.00; obj.TotalInternalReflection(); result+=Convert.ToString(obj.CriticalAngle*180.0/Math.PI); } } } //48.7534666313272