summaryrefslogtreecommitdiff
path: root/2276/CH5/EX5.10/chapter5_ex10.sce
blob: 066fbb7432f2574047bd59bf6856006cd3415aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear

//input
r=2;//resistance of an inductor in ohms
l=0.07;//inductance of an inductor in henry which is in resonance with a capacitor
f=60;//resonant frequency in hertz

//calculations
tanphi=(2*%pi*f*l)/r;//ratio between capacitor current and supply current

//output
mprintf('the ratio of capacitor current to supply current is %3.1f : 1',tanphi)