summaryrefslogtreecommitdiff
path: root/2384/CH5/EX5.1/ex5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2384/CH5/EX5.1/ex5_1.sce')
-rwxr-xr-x2384/CH5/EX5.1/ex5_1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2384/CH5/EX5.1/ex5_1.sce b/2384/CH5/EX5.1/ex5_1.sce
new file mode 100755
index 000000000..6e08018c0
--- /dev/null
+++ b/2384/CH5/EX5.1/ex5_1.sce
@@ -0,0 +1,23 @@
+// Exa 5.1
+clc;
+clear;
+close;
+format('v',6)
+// Given data
+R = 20;// in ohm
+X_L = 15;// in ohm
+V_L = 400;// in V
+f = 50;// in Hz
+V_Ph = V_L/sqrt(3);// in V
+Z_Ph = sqrt( (R^2) + (X_L^2) );// in ohm
+I_Ph = V_Ph/Z_Ph;// in A
+I_L = I_Ph;// in A
+disp(I_L,"The line current in A is");
+//pf = cos(phi) = R_Ph/Z_Ph;
+R_Ph = R;// in ohm
+phi= acosd(R_Ph/Z_Ph);
+// Power factor
+pf= cosd(phi);// in °
+disp("The power factor is : "+string(pf)+"° lag.");
+P = sqrt(3)*V_L*I_L*cosd(phi);// in W
+disp(P,"The power supplied in W is");