summaryrefslogtreecommitdiff
path: root/1964/CH5/EX5.25
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1964/CH5/EX5.25
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1964/CH5/EX5.25')
-rwxr-xr-x1964/CH5/EX5.25/ex5_25.sce24
1 files changed, 24 insertions, 0 deletions
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======================================================================================================