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 /2384/CH5/EX5.2 | |
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 '2384/CH5/EX5.2')
-rwxr-xr-x | 2384/CH5/EX5.2/ex5_2.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2384/CH5/EX5.2/ex5_2.sce b/2384/CH5/EX5.2/ex5_2.sce new file mode 100755 index 000000000..b60769f5e --- /dev/null +++ b/2384/CH5/EX5.2/ex5_2.sce @@ -0,0 +1,24 @@ +// Exa 5.2
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R_Ph = 16;// in ohm
+X_L = 12;// in ohm
+V_L = 400;// in V
+disp(V_L,"The line voltage in V is");
+f = 50;// in Hz
+V_Ph = V_L/sqrt(3);// in V
+disp(V_Ph,"The phase voltage in V is");
+Z_Ph = R_Ph + %i*X_L;// in ohm
+I_Ph= V_Ph/Z_Ph;// in A
+I_L= I_Ph;// in A
+phi= atand(imag(I_L),real(I_L));
+cos_phi= R_Ph/abs(Z_Ph);
+disp(abs(I_L),"The line current in A is : ")
+disp(abs(I_Ph),"The line current in A is : ")
+disp("Power factor is : "+string(cos_phi)+" lagging")
+P= sqrt(3)*V_L*abs(I_L)*cos_phi;// in W
+disp(P,"The power absorbed in W is : ")
+
|