summaryrefslogtreecommitdiff
path: root/1964/CH5/EX5.28
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.28
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.28')
-rwxr-xr-x1964/CH5/EX5.28/ex5_28.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/1964/CH5/EX5.28/ex5_28.sce b/1964/CH5/EX5.28/ex5_28.sce
new file mode 100755
index 000000000..fcc4f5ddc
--- /dev/null
+++ b/1964/CH5/EX5.28/ex5_28.sce
@@ -0,0 +1,26 @@
+//Chapter-5, Example 5.28, Page 189
+//=============================================================================
+clc
+clear
+//INPUT DATA
+f=50;//freq in hz
+V=100;//volatge in V
+L1=0.015;//inductance in branch 1 in henry
+L2=0.08;//inductance in branch 2 in henry
+R1=2;//resistance of branch 1 in ohms
+x1=4.71;//reactance of branch 1 in ohms
+R2=1;//resistance of branch 2 in ohms
+x2=25.13;//reactance of branch 2 in ohms
+Z1=(R1)+(%i*x1);//impedance of branch1 in ohms
+Z2=(R2)+(%i*x2);//impedance of branch1 in ohms
+I1=V/Z1;//current in branch 1 in A
+printf("current in branch 1 in A")
+disp(I1);
+I2=V/Z2;//current in branch 2 in A
+printf("current in branch 2 in A")
+disp(I2);
+I3=I1+I2;//total current in A
+printf("total current in A")
+disp(I3);
+//note:Answer for real part of total current given in textbook is wrong.Please check the calculations
+//=================================END OF PROGRAM======================================================================================================