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 /1223/CH7/EX7.1/Ex7_1.sce | |
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 '1223/CH7/EX7.1/Ex7_1.sce')
-rwxr-xr-x | 1223/CH7/EX7.1/Ex7_1.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1223/CH7/EX7.1/Ex7_1.sce b/1223/CH7/EX7.1/Ex7_1.sce new file mode 100755 index 000000000..f615ee2fe --- /dev/null +++ b/1223/CH7/EX7.1/Ex7_1.sce @@ -0,0 +1,21 @@ +clear;
+clc;
+//Example 7.1
+Rs=1000;
+Rp=10000;
+Cs=1*10^-6;
+Cp=3*10^-12;
+Ts=(Rs+Rp)*Cs;
+printf('\ntime constant=%.3f s\n',Ts)
+f=1/(2*%pi*Ts);
+printf('\ncorner frequency=%.2f Hz\n',f)
+x=20*log10(Rp/(Rp+Rs));
+printf('\nmaximum magnitude =%.3fdB\n',x)
+Rp=10;//KOhm
+Rs=1;//Kohm
+Cp=3;//pF
+Tp=Cp*Rs*Rp/(Rs+Rp);
+printf('\ntime constant=%.3f ns\n',Tp)
+Tp=2.73*10^-3;//micro sec
+f=1/(2*%pi*Tp);
+printf('\ncorner frequency =%.2fMHz\n',f)
|