using System; using GP=Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// MomentumTest /// public class MomentumTest { public MomentumTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Mass m = new GP.Mass(); m.kg = 5.0; GP.Velocity v = new GP.Velocity(); v.X = 3.0; v.Y = 2.0; v.Z = 1.0; GP.Momentum p = new GP.Momentum(m,v); GP.Position r = new GP.Position(); r.X = 2.0; r.Y = 1.0; r.Z = 3.0; GP.AngularMomentum l = new GP.AngularMomentum(r,p); result += l.ToString(); } } } // -25 +/- 0 i +35 +/- 0 j +5 +/- 0 k (Js)