summaryrefslogtreecommitdiff
path: root/2276/CH4/EX4.4/chapter4_ex4.sce
blob: 7480b35643e6cc59ce7c4b6ce4ca4b658d8713a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clc
clear

//input
//given voltage and  current equations are v=354*(sin(314*t)) volts,i=14.1*(sin((314*t)-0.5)) amperes
vmax=354;//maximum voltage in volts
imax=14.1;//maximum current in amperes
phi=0.5;//phase angle in radians
f=50;//supply frequency in hertz

//calculations
V=0.707*vmax;//voltmeter reading placed in the circuit
I=0.707*imax;//ammeter reading placed in circuit
z=V/I;//impedance of the coil in ohms
R=z*cos(phi);//resistance in ohms
xl=z*sin(phi);//reactance of coil in ohms
l=(xl/(2*%pi*f))*1000;//inductance of the coil in millihenry

//output
mprintf('the coil has a resistance of %3.0f ohm and an inductance of %3.0f mH \n the instrument readings will be %3.0f V and %3.0f A',R,l,V,I)