using System; using L=Science.Physics.GeneralPhysics; namespace Serway.Chapter26 { /// /// Example04: Equivalent Capacitance /// Find the equivalent capacitance between a and b for /// the combination of capacitors shown in Figure 26.11a. /// All capacitances are in microfarads. /// public class Example04 { public Example04() { } private string result; public string Result { get{return result;} } public void Compute() { L.Capacitance[] C = new L.Capacitance[11]; for(int i = 0; i < 11 ; i++) C[i] = new L.Capacitance(); C[0].F = 4.0E-6; C[1].F = 1.0E-6; C[2].F = 3.0E-6; C[3].F = 6.0E-6; C[4].F = 2.0E-6; C[5].F = 8.0E-6; C[6] = L.Capacitance.Parallel(C[1],C[2]); C[7] = L.Capacitance.Series(C[0],C[6]); C[8] = L.Capacitance.Parallel(C[3],C[4]); C[9] = L.Capacitance.Series(C[8],C[5]); C[10] = L.Capacitance.Parallel(C[7],C[9]); result+=C[10].ToString()+"\r\n"; } } } //6E-06 +/- 0 (F)