diff options
Diffstat (limited to '3754/CH32/EX32.4/32_4.sce')
-rw-r--r-- | 3754/CH32/EX32.4/32_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3754/CH32/EX32.4/32_4.sce b/3754/CH32/EX32.4/32_4.sce new file mode 100644 index 000000000..411fb0042 --- /dev/null +++ b/3754/CH32/EX32.4/32_4.sce @@ -0,0 +1,18 @@ +clear//
+
+//Variables
+
+T1 = 1.0 * 10**-6 //Pulse width (in seconds)
+f = 100.0 * 10**3 //Frequency (in Hertz)
+R1=10.0*10**3;R2=10.0*10**3;
+
+//Calculation
+
+T = 1/f //Time period of oscillation (in seconds)
+C1 = T1 / 0.69 / R1 //Capacitance (in Farad)
+T2 = T - T1 //Time period (in seconds)
+C2 = T2 / 0.69 / R2 //Capacitance (in Farad)
+
+//Result
+
+printf("\n Value of C1 capacitor is %0.0f pico-Farad.\nValue of C2 capacitor is %0.0f pico-Farad.",C1*10**12,C2*10**12)
|