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.28/ex5_28.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 1964/CH5/EX5.28/ex5_28.sce (limited to '1964/CH5/EX5.28') 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====================================================================================================== -- cgit