using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter39 { /// /// Example09: Relativistic Leaders of the Pack /// Two motorcycle pack leaders named David and Emily are /// racing at relativistic speeds along perpendicular paths, /// as shown in Figure 39.17. How fast does Emily recede as /// seen by David over his right shoulder? /// public class Example09 { public Example09() { } private string result; public string Result { get{return result;} } public void Compute() { L.Velocity v = new L.Velocity(); v.X = 0.75*L.Constant.SpeedOfLightInVacuum; L.Velocity u = new L.Velocity(); u.Y = -0.90*L.Constant.SpeedOfLightInVacuum; L.Velocity up = new L.Velocity(); L.Relativity.LorentzTransformationForVelocity(u,up,v); result+=Convert.ToString(up.X/L.Constant.SpeedOfLightInVacuum)+"\r\n"; result+=Convert.ToString(up.Y/L.Constant.SpeedOfLightInVacuum)+"\r\n"; result+=Convert.ToString(up.Norm/L.Constant.SpeedOfLightInVacuum)+"\r\n"; } } } /* -0.75 -0.595294044989533 0.957535900110278 */