using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter04 { /// /// Example06: The Stranded Explorers /// A plane drops a package of supplied to a party of /// explorers, as shown in Figure 4.15. If the plane is /// traveling horizontally at 40.0 m/s and is 100 m above the /// ground, where does the package strike the ground relative /// to the point at which it is released? 181 m /// public class Example06 { public Example06() { } private string result; public string Result { get{return result;} } public void Compute() { L.Velocity v = new L.Velocity(); v.X = 40.0; double[] coe = { 100.0, 0.0, -0.5 * L.Constant.AccelerationOfGravity }; L.Complex[] poly = L.Calculus.SolutionOfPolynomialEquation(coe); double time1 = poly[0].Real; double time2 = poly[1].Real; double solution; if(time2 > time1) solution = time2; else solution = time1; double distance = v.X*solution; result+=distance.ToString(); } } } //180.70158058105