summaryrefslogtreecommitdiff
path: root/2672/CH6/EX6.18/Ex6_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '2672/CH6/EX6.18/Ex6_18.sce')
-rwxr-xr-x2672/CH6/EX6.18/Ex6_18.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2672/CH6/EX6.18/Ex6_18.sce b/2672/CH6/EX6.18/Ex6_18.sce
new file mode 100755
index 000000000..9165726b5
--- /dev/null
+++ b/2672/CH6/EX6.18/Ex6_18.sce
@@ -0,0 +1,20 @@
+//Example 6_18
+clc;
+clear;
+close;
+format('v',4);
+//given data :
+Vp=230;//V
+fin=50;//Hz
+RL=200;//ohm
+NsByNp=1/4;//turns ratio
+Vs=Vp*NsByNp;//V
+Vrms=Vs;//V
+Vm=Vrms*sqrt(2);//V
+Idc=2*Vm/%pi/RL;//A
+RL=150;//ohm
+Vdc=Idc*RL;//V
+disp(Vdc,"dc output Voltage(V) : ");
+//Because of two output pulses
+fout=2*fin;///Hz
+disp(fout,"Pulse frequency of the output(Hz) : ");