From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1964/CH5/EX5.25/ex5_25.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 1964/CH5/EX5.25/ex5_25.sce (limited to '1964/CH5/EX5.25') diff --git a/1964/CH5/EX5.25/ex5_25.sce b/1964/CH5/EX5.25/ex5_25.sce new file mode 100755 index 000000000..2a413bb2b --- /dev/null +++ b/1964/CH5/EX5.25/ex5_25.sce @@ -0,0 +1,24 @@ +//Chapter-5, Example 5.25, Page 185 +//============================================================================= +clc +clear +//INPUT DATA +L=6;//inductance in millihenry +R2=50;//resistance in ohms +R1=40;//resistance in ohms +C=4;//capacitance in uf +V=100;//voltage in volts +f=800;//frequency in hz +//CALCULATIONS +Xl=(2*%pi*f*L*10^-3);//inductive reactance in ohms +Xc=1/(2*%pi*f*C*10^-6);//capacitive reactance in ohms +Y1=inv((R1)+(%i*Xl));//admittance of branch1 in mho +Y2=inv((R2)-(%i*Xc));//admittance of branch2 in mho +I1=V*(Y1);//current in branch 1 +I2=V*(Y2);//current in branch 2 +I=I1+I2;//total curremt in A +theta=(atan(imag(I1)/real(I1))-atan(imag(I2)/real(I2))); +theta=theta*180/%pi;//angle in degrees +mprintf("Thus total current taken from supply is %2.2f\n",abs(I)); +mprintf("phase angle between currents of coil and capacitor is %2.2f degrees",theta); +//=================================END OF PROGRAM====================================================================================================== -- cgit