using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// LatentHeatTest /// public class LorentzForceTest { public LorentzForceTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.ElectricCharge q = new GP.ElectricCharge(); q.C = 10.0; GP.ElectricField E = new GP.ElectricField(); E.X = 1.0; E.Y = 2.0; E.Z = 3.0; GP.Velocity v = new GP.Velocity(); v.X = 2.0; v.Y = 1.0; v.Z = 0.0; GP.MagneticField B = new GP.MagneticField(); B.X = 2.0; B.Y = 3.0; B.Z = 1.0; GP.LorentzForce F = new GP.LorentzForce(q, E, v, B); result += F.ToString(); } } } // 20 +/- 0 i +0 +/- 0 j +70 +/- 0 k (N)