using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter01 { /// /// Example02: Analysis of an equation /// Show that the expression v=at is dimensionally /// correct, where v represents speed, a acceleration, and t an /// instant of time. /// public class Example02 { public Example02() { } private string result; public string Result { get{return result;} } public void Compute() { L.Velocity v = new L.Velocity(); L.Acceleration a = new L.Acceleration(); if(v.DimensionLength == a.DimensionLength & v.DimensionMass == a.DimensionMass & v.DimensionTime == a.DimensionTime + 1) result += "it is correct!"; } } }