summaryrefslogtreecommitdiff
path: root/3754/CH36/EX36.1/36_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH36/EX36.1/36_1.sce')
-rw-r--r--3754/CH36/EX36.1/36_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH36/EX36.1/36_1.sce b/3754/CH36/EX36.1/36_1.sce
new file mode 100644
index 000000000..beacbb131
--- /dev/null
+++ b/3754/CH36/EX36.1/36_1.sce
@@ -0,0 +1,15 @@
+clear//
+
+//Variables
+
+R1 = 1.0 * 10**3 //Resistance (in ohm)
+R2 = 100.0 * 10**3 //Resistance (in ohm)
+f1 = 159.0 //Frequency (in Hertz)
+
+//Calculation
+
+C = 1.0/(2*%pi*R2*f1) //Capacitance (in Farad)
+
+//Result
+
+printf("\n Capacitance required in the circuit is %0.2f micro-Farad.",C * 10**6)