using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter29 { /// /// Example01: An Electron Moving in a Magnetic Field /// An electron in a television picture tube moves toward /// the front of the tube with a speed of 8.0 \times 10^6 m/s /// along the x axis (Fig. 29.5). Surrounding the neck of the tube are /// coils of wire that create a magnetic field of magnitude /// 0.025 T, directed at an angle of 60^{\circle} to the x axis and /// lying in the xy plane. /// (A) Calculate the magnetic force on the electron using /// Equation 29.2. /// (B) Find a vector expression for the magnetic force /// on the electron using Equation 29.1. /// public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { L.ElectricCharge e = new L.ElectricCharge(); e.C = -L.Constant.ElementaryCharge; L.Velocity v = new L.Velocity(); v.X = 8.0E6; L.MagneticField B = new L.MagneticField(); B.X = 0.025*Math.Cos(60.0*Math.PI/180.0); B.Y = 0.025*Math.Sin(60.0*Math.PI/180.0); L.MagneticForce F = new L.MagneticForce(e,v,B); result+=F.ToString(); } } } //0 +/- 0 i +0 +/- 0 j -2.7712812921102E-14 +/- 0 k (N)