diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1964/CH4/EX4.20 | |
download | Scilab-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/CH4/EX4.20')
-rwxr-xr-x | 1964/CH4/EX4.20/ex4_20.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1964/CH4/EX4.20/ex4_20.sce b/1964/CH4/EX4.20/ex4_20.sce new file mode 100755 index 000000000..07604d82b --- /dev/null +++ b/1964/CH4/EX4.20/ex4_20.sce @@ -0,0 +1,19 @@ +//Chapter-4, Example 4.20, Page 147
+//=============================================================================
+clc
+clear
+//CALCULATIONS
+//given voltage eqn is v=100+(100*sqrt(2))*sin(314*t) volts
+W=314;//freq in rad/sec
+R=5;//resistance in ohms
+X=12;//reactance in ohms
+Z=R+((%i)*(X));//impedance in ohms
+Idc=100/R;//dc current in A
+Iac=(100)/(sqrt((R)^2+(X)^2));//rms value of ac component of current
+Pt=(R*(Idc^2))+(R*(Iac^2));//total power in Watts
+V1=sqrt((100)^2+(100)^2);//supplied voltage in Rms in volts
+I1=sqrt((20)^2+(7.69)^2);//current in Rms in Amps
+Z1=V1/I1;//circuit impedance in ohms
+Pf=Pt/(V1*I1);//Power factor
+mprintf("thus circuit impedance,Power expended and Power factors are %1.1f Ohms ,%1.0f W and %1.3f respectively",Z1,Pt,Pf);
+//=================================END OF PROGRAM==============================
|