using System; using L=Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// Impulse /// public class ImpulseTest { public ImpulseTest() { } private string result; public string Result { get{return result;} } public void Compute() { L.Mass m = new L.Mass(); m.kg = 1500.0; L.Velocity vi = new L.Velocity(); vi.X = -15.0; L.Velocity vf = new L.Velocity(); vf.X = 2.6; L.Momentum pi = new L.Momentum(m,vi); L.Momentum pf = new L.Momentum(m,vf); L.Impulse I = new L.Impulse(pi,pf); L.Time t = new L.Time(); t.s = 0.15; I.ImpactTime = t; result+="I="+I.ToString()+"\r\n"; result+="F="+I.AverageForce.ToString()+"\r\n"; } } } /* I=26400 +/- 0 i +0 +/- 0 j +0 +/- 0 k (kgm/s) F=176000 +/- 0 i +0 +/- 0 j +0 +/- 0 k (N) */