using System; using L=Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// InstantVelocity /// public class VelocityTest { public VelocityTest() { } private string result; public string Result { get{return result;} } public void Compute() { L.Time t = new L.Time(); t.s = 2.5; L.Vector.FunctionOfTime PositionTime = new L.Vector.FunctionOfTime(Func); L.Position x = new L.Position(); x.VectorFunctionOfTime = PositionTime; L.Velocity v = new L.Velocity(x,t); result += "v="+v.ToString()+"\r\n"; } private L.Vector Func(L.Time t) { L.Vector x = new L.Vector(); x.X = -4.0*t.s+2.0*t.s*t.s; x.Y = 0.0; x.Z = 0.0; return x; } } } // v=5.99999999999994 +/- 0 i +0 +/- 0 j +0 +/- 0 k (m/s)