diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3041/CH8/EX8.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3041/CH8/EX8.3')
-rwxr-xr-x | 3041/CH8/EX8.3/Ex8_3.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3041/CH8/EX8.3/Ex8_3.sce b/3041/CH8/EX8.3/Ex8_3.sce new file mode 100755 index 000000000..ea76df64c --- /dev/null +++ b/3041/CH8/EX8.3/Ex8_3.sce @@ -0,0 +1,23 @@ + + +//Variable declaration +C=0.01 //capacitance(uF) +R2=15 //resistance(k ohms) +Va2=4 //voltage(V) +Vcc=15. //supply voltage(V) +R1=33 //resistance(k ohms) + +//Calculations +Va1=0.67*Vcc //voltage(V) +Vamax=Va1+Va2 //Va maximum(V) +Vamin=Va1-Va2 //Va minimum(V) +T1max=C*(R1+R2)*(log((1-(Vamax/(2*Vcc)))/(1-(Vamax/Vcc)))) //time period(ms) +T1min=C*(R1+R2)*(log((1-(Vamin/(2*Vcc)))/(1-(Vamin/Vcc)))) //time period(ms) +T2=0.693*R2*C +fmax=1/(T1min+T2) //maximum frequency(K Hz) +fmin=1/(T1max+T2) //miniimum frequency(K Hz) + +//Results +printf ("minimum freq is %.2f",fmin) +printf ("maximum freq is %.2f",fmax) +printf(" (solution given in the textbook is incorrect)"); |