diff options
Diffstat (limited to '608/CH15/EX15.18')
-rwxr-xr-x | 608/CH15/EX15.18/15_18.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/608/CH15/EX15.18/15_18.sce b/608/CH15/EX15.18/15_18.sce new file mode 100755 index 000000000..af750a6d5 --- /dev/null +++ b/608/CH15/EX15.18/15_18.sce @@ -0,0 +1,16 @@ +//Problem 15.18: A coil having a resistance of 10 ohms and an inductanc of 125 mH is connected in series with a 60 μF capacitor across a 120 V supply. At what frequency does resonance occur? Find the current flowing at the resonant frequency.
+
+//initializing the variables:
+R = 10; // in ohms
+C = 60E-6; // in Farads
+L = 125E-3; // in Henry
+V = 120; // in Volts
+
+//calculation:
+fr = 1/(2*%pi*(L*C)^0.5)
+//At resonance, XL = Xc and impedance Z = R
+I = V/R
+
+printf("\n\n Result \n\n")
+printf("\n (a)Resonance frequency,Fr = %.2f Hz",fr)
+printf("\n (b)Current, I = %.0f",I)
\ No newline at end of file |