summaryrefslogtreecommitdiff
path: root/3775/CH4/EX4.3/Ex4_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3775/CH4/EX4.3/Ex4_3.sce')
-rw-r--r--3775/CH4/EX4.3/Ex4_3.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3775/CH4/EX4.3/Ex4_3.sce b/3775/CH4/EX4.3/Ex4_3.sce
new file mode 100644
index 000000000..b0ea49598
--- /dev/null
+++ b/3775/CH4/EX4.3/Ex4_3.sce
@@ -0,0 +1,20 @@
+//Ex 4.3 page 159
+
+clc;
+clear;
+close;
+
+
+R=10;// ohm
+Vs=230;// V
+f=50;// Hz
+alpha = 90;// degree
+
+Vor=Vs*sqrt(1/%pi*(%pi-alpha*%pi/180+sin(2*alpha*%pi/180)/2));// V
+Ior=Vor/R;// A
+P=Ior**2*R;// W
+pf=Vor/Vs;// power factor
+printf('\n rms load voltage = %.2f V', Vor)
+printf('\n rms load current = %.2f A', Ior)
+printf('\n power input = %.2f W', P)
+printf('\n load power factor = %.1f ',pf)