summaryrefslogtreecommitdiff
path: root/608/CH28/EX28.01/28_01.sce
blob: ee2c3f6f23608115376159d7f2eba278fd32a3b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Problem 28.01: A coil having a resistance of 10 ohm and an inductance of 75 mH is connected in series with a 40 μF capacitor across a 200 V a.c. supply. Determine at what frequency resonance occurs, and (b) the current flowing at resonance.

//initializing the variables:
R = 10; // in ohms
C = 40e-6; // IN fARADS
L = 0.075; // IN Henry
V = 200; // in Volts

//calculation:
//Resonant frequency,
fr = 1/(2*%pi*((L*C)^0.5))
//Current at resonance, I
I = V/R

printf("\n\n Result \n\n")
printf("\n (a)Resonant frequency = %.1f Hz ",fr)
printf("\n (b)Current at resonance, I is %.0f A ",I)