summaryrefslogtreecommitdiff
path: root/3638/CH13/EX13.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3638/CH13/EX13.1
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3638/CH13/EX13.1')
-rw-r--r--3638/CH13/EX13.1/Ex13_1.jpgbin0 -> 62262 bytes
-rw-r--r--3638/CH13/EX13.1/Ex13_1.sce26
2 files changed, 26 insertions, 0 deletions
diff --git a/3638/CH13/EX13.1/Ex13_1.jpg b/3638/CH13/EX13.1/Ex13_1.jpg
new file mode 100644
index 000000000..17618ac70
--- /dev/null
+++ b/3638/CH13/EX13.1/Ex13_1.jpg
Binary files differ
diff --git a/3638/CH13/EX13.1/Ex13_1.sce b/3638/CH13/EX13.1/Ex13_1.sce
new file mode 100644
index 000000000..817b50978
--- /dev/null
+++ b/3638/CH13/EX13.1/Ex13_1.sce
@@ -0,0 +1,26 @@
+//Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
+//Example 13.2
+//OS=Windows XP sp3
+//Scilab version 5.5.2
+clc;
+clear;
+//given
+//Vc(t)=V0*(1-exp(-t/(R*C))) is the voltage across capacitance in an RC circuit
+//Hence, the time t=R*C*(-log(1-Vc/V0))
+
+//The Rise time is the time taken by a system to rise from 10% to 90% of maximum value
+//So, it is given as Tr=T90-T10 where T90 is time when Vc is 90% of maximum value and T10 is time when Vc is 10% of maximum value
+//i.e. Tr=R*C*(-log(1-0.9))-R*C*(-log(1-0.1))
+//Let Tr=R*C*k; where k=log(1-0.1))-log(1-0.9)
+k=log(1-0.1)-log(1-0.9);
+mprintf("\n The Rise Time Tr=%.2fRC",k);
+
+//Now, The 3dB bandwidth is given as Deltaf=1/(2*%pi*R*C);
+//Let Deltaf=m/(R*C); where m=1/(2*%pi)
+m=1/(2*%pi);
+mprintf("\n The 3dB bandwidth Deltaf=%.2f/RC",m);
+
+//By multiplying expressions of Tr and Deltaf, we eliminate RC from the expressions
+//Rearranging te terms, we get Tr in terms of Deltaf
+mprintf("\n Rise time in terms of Bandwidth is given as:");
+mprintf("\n Tr=%.2f/Deltaf",k*m);