using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter04 { /// /// Example10: A Boat Crossing a River /// A boat heading due north crosses a wide river with a /// speed of 10.0 km/h relative to the water. The water in /// the river has a uniform speed of 5.00 km/h due east /// relative to the Earth. Determine the velocity of the /// boat relative to an observer standing on either bank. /// v = 11.2 km/h /// public class Example10 { public Example10() { } private string result; public string Result { get{return result;} } public void Compute() { L.Velocity boat = new L.Velocity(); boat.Y = 10.0; L.Velocity water = new L.Velocity(); water.X = 5.0; L.Vector sum = boat + water; result += sum.Norm.ToString(); } } } //11.1803398874989