summaryrefslogtreecommitdiff
path: root/3840/CH8/EX8.18/Ex8_18.sce
diff options
context:
space:
mode:
Diffstat (limited to '3840/CH8/EX8.18/Ex8_18.sce')
-rw-r--r--3840/CH8/EX8.18/Ex8_18.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3840/CH8/EX8.18/Ex8_18.sce b/3840/CH8/EX8.18/Ex8_18.sce
new file mode 100644
index 000000000..71888bbc8
--- /dev/null
+++ b/3840/CH8/EX8.18/Ex8_18.sce
@@ -0,0 +1,17 @@
+clear
+//
+//
+//
+
+//Variable declaration
+Vrms=200 //voltage(V)
+RL=1000 //load resistance(ohm)
+
+//Calculation
+Im=Vrms*sqrt(2)/RL //peak current(A)
+Idc=2*Im/%pi //average DC current(A)
+Vdc=int(Idc*RL) //dc voltage(V)
+x=(Vrms/Vdc)**2
+gama=sqrt(x-1)*Vdc //ripple factor(V)
+
+//Result