using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter02 { /// /// Example08: Watch Out for the Speed Limit! /// A car traveling at a constant speed of 45.0 m/s passes /// a trooper hidden behind a billboard. One second after /// the speeding car passes the billboard, the trooper /// sets out from the billboard to catch it, accelerating /// at a constant rate of 3.00 m/s^2. /// How long does it take her to overtake the car? /// public class Example08 { public Example08() { } private string result; public string Result { get{return result;} } public void Compute() { double[] coe = { 45.0, 45.0, -3.0 / 2.0 }; L.Complex[] p = L.Calculus.SolutionOfPolynomialEquation(coe); result += p[0].ToString()+"\r\n"; result += p[1].ToString()+"\r\n"; } } } /* -0.968719422671312 30.9687194226713 */