summaryrefslogtreecommitdiff
path: root/3754/CH19/EX19.12/19_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH19/EX19.12/19_12.sce')
-rw-r--r--3754/CH19/EX19.12/19_12.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH19/EX19.12/19_12.sce b/3754/CH19/EX19.12/19_12.sce
new file mode 100644
index 000000000..e3a9e1bae
--- /dev/null
+++ b/3754/CH19/EX19.12/19_12.sce
@@ -0,0 +1,16 @@
+clear//
+
+//Variables
+
+Vdc = 12.0 //Average value of voltage (in volts)
+Idc = 100.0 //Average value of current (in milli-Ampere)
+gamma = 0.01 //Ripple factor
+L = 1.0 //Inductance (in Henry)
+
+//Calculation
+
+C = 1.195 / (gamma * L) //Capacitance
+
+//Result
+
+printf("\n Capacitance is %0.3f micro-Farad.",C)