using System; using GP = Science.Physics.GeneralPhysics; namespace ScienceTest.PhysicsTest.GeneralPhysicsTest { /// /// KirchhoffTest /// public class CircuitRLCTest { public CircuitRLCTest() { } private string result; public string Result { get{return result;} } public void Compute() { GP.Resistance R = new GP.Resistance(); R.Ohm = 2.0; GP.Inductance L = new GP.Inductance(); L.H = 10.0; GP.Capacitance C = new GP.Capacitance(); C.F = 3.0; GP.CircuitRLC cir = new GP.CircuitRLC(R,L, C); GP.Frequency f = new GP.Frequency(); f.Hz = 10.0; result += cir.Impedance(f).ToString() + "\r\n"; } } } // 628.316408670864