diff options
Diffstat (limited to '3754/CH34/EX34.1')
-rw-r--r-- | 3754/CH34/EX34.1/34_1.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH34/EX34.1/34_1.sce b/3754/CH34/EX34.1/34_1.sce new file mode 100644 index 000000000..e8fa6cd9d --- /dev/null +++ b/3754/CH34/EX34.1/34_1.sce @@ -0,0 +1,15 @@ +clear//
+
+//Variables
+
+R = 100.0 * 10**3 //Resistance (in ohm)
+C = 0.4 * 10**-6 //Capacitance (in Farad)
+n = 0.57 //Ratio of peak-peak voltage to the supply voltage
+
+//Calculation
+
+f = 1 / (2.3 * R * C * log10(1/(1-n))) //Frequency (in Hertz)
+
+//Result
+
+printf("\n Frequency of sweep is %0.2f Hz.",f)
|