using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// KineticEnergyTest /// public class KineticEnergyTest { public KineticEnergyTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Mass m = new GP.Mass(); m.kg = 4.0; GP.Velocity v = new GP.Velocity(); v.X = 1.0; v.Y = 2.0; v.Z = 5.0; GP.KineticEnergy k = new GP.KineticEnergy(m,v); result += k.ToString()+"\r\n"; GP.MomentOfInertia I = new GP.MomentOfInertia(); I.XX = 3.0; I.YY = 2.0; I.ZZ = 1.0; GP.AngularVelocity omega = new GP.AngularVelocity(); omega.X = 1.0; omega.Y = 2.0; omega.Z = 5.0; GP.KineticEnergy K = new GP.KineticEnergy(I,omega); result += K.ToString(); } } } /* 60 +/- 0(J) 18 +/- 0(J) */