using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter07 { /// /// Example01: Mr. Clean /// A man cleaning a floor pulls a vacuum cleaner with /// a force of magnitude F = 50.0 N at an angle of 30.0^{\circle} /// with the horizontal (Fig.7.5a). Calculate the work done by /// the force on the vacuum cleaner as the vacuum is /// displaced 3.00 m to the right. /// W = 130 J /// public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { L.Force f = new L.Force(); f.X = 50.0*Math.Cos(30.0*Math.PI/180.0); f.Y = 50.0*Math.Sin(30.0*Math.PI/180.0); L.Displacement d = new L.Displacement(); d.X = 3.0; L.Work w = new L.Work(f,d); result+= w.ToString(); } } } // 129.903810567666 +/- 0 (J)