diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3754/CH34 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3754/CH34')
-rw-r--r-- | 3754/CH34/EX34.1/34_1.sce | 15 | ||||
-rw-r--r-- | 3754/CH34/EX34.2/34_2.sce | 25 |
2 files changed, 40 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)
diff --git a/3754/CH34/EX34.2/34_2.sce b/3754/CH34/EX34.2/34_2.sce new file mode 100644 index 000000000..ffc74a33c --- /dev/null +++ b/3754/CH34/EX34.2/34_2.sce @@ -0,0 +1,25 @@ +clear//
+
+//Variables
+
+n = 0.62 //Ratio of peak-peak voltage to the supply voltage
+R = 5.0 * 10**3 //Resistance (in ohm)
+C = 0.05 * 10**-6 //Capacitor (in Farad)
+
+//Calculation
+
+T = 2.3 * R * C * log10(1/(1-n)) //Time period of oscillation (in seconds)
+f = 1/T //Frequency of oscillation (in Hertz)
+f1 = 50.0 //New frequency (in Hertz)
+T1 = 1/f1 //New time period of oscillation (in seconds)
+R1 = T1 / (2.3 * C * log10(1/(1-n))) //New Resistance (in ohm)
+f2 = 50.0 //Another new frequency (in Hertz)
+C2 = 0.5 * 10**-6 //Capacitance (in Farad)
+T2 = 1/f2 //Another new time period (in seconds)
+R2 = T2 / (2.3 * C2 * log10(1/(1-n))) //New Resistance (in ohm)
+
+//Result
+
+printf("\n The time period and frequency of oscillation in case 1 is %0.2f ms and %0.0f Hz.",T*10**3,f)
+printf("\n New value of R is %0.0f kilo-ohm.",R1 * 10**-3)
+printf("\n Value of R with C is 0.5 micro-Farad is %0.1f kilo-ohm.",R2 * 10**-3)
|