using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter46 { /// /// Example05: Recession of a Quasar /// A quasar is an object that appears similar to a star /// and is very distant from the Earth. Its speed can be /// determined from Doppler-shift measurements in the light /// it emits. A certain quasar recedes from the Earth /// at a speed of 0.55c. How far away is it? /// public class Example05 { public Example05() { } private string result; public string Result { get{return result;} } public void Compute() { L.Velocity v = new L.Velocity(); v.X = L.Constant.SpeedOfLightInVacuum*0.55; L.Length R = new L.Length(); R.Magnitude = v.mPERs/L.Constant.HubbleConstantLightYear; result+=Convert.ToString(R.Magnitude)+" LightYear"; } } } //9699167758.82353 LightYear