using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// AngularAccelerationTest /// public class AngularVelocityTest { private string result; public string Result { get{return result;} } public AngularVelocityTest() { } public void Compute() { GP.Vector.FunctionOfTime w = new GP.Vector.FunctionOfTime(ff); GP.AngleVector tv = new GP.AngleVector(); tv.VectorFunctionOfTime = w; GP.Time t = new GP.Time(); t.s = 2.0; GP.AngularVelocity omega = new GP.AngularVelocity(tv,t); result += omega.ToString(); } public GP.Vector ff(GP.Time t) { GP.Vector om = new GP.Vector(); om.X = t.s; om.Y = t.s* t.s; om.Z = t.s * t.s * t.s; return om; } } } // 1.00000000000015 +/- 0 i +4.00000000000161 +/- 0 j +12.0000000000029 +/- 0 k (rad/s)