using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter27 { /// /// Example03: The Resistance of Nichrome Wire /// (A) /// Calculate the resistance per unit length of a 22-gauge /// Nichrome wire, which has a radius of 0.321 mm. /// (B) /// If a potential difference of 10 V is maintained across /// a 1.0 m length of the Nichriome wire, what is the current /// in the wire? /// public class Example03 { public Example03() { } private string result; public string Result { get{return result;} } public void Compute() { L.Length l = new L.Length(); l.m = 1.0; L.Length radius = new L.Length(); radius.m = 0.321E-3; L.Area A = new L.Area(); A.mSQUARE = Math.PI*radius.m*radius.m; //(A) L.Resistivity rho = new L.Resistivity(); rho.Ohmm = 1.5E-6; L.Resistance R = new L.Resistance(rho,l,A); result+=R.ToString()+" "; //(B) L.ElectricPotentialDifference V = new L.ElectricPotentialDifference(); V.V = 10.0; L.ElectricCurrent I = new L.ElectricCurrent(R,V); result+=I.ToString(); } } } //4.63373636975268 +/- 0 (Ohm) 2.15808565745697 +/- 0 (A)