From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3547/CH6/EX6.6/EX6_6.sce | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 3547/CH6/EX6.6/EX6_6.sce (limited to '3547/CH6/EX6.6/EX6_6.sce') diff --git a/3547/CH6/EX6.6/EX6_6.sce b/3547/CH6/EX6.6/EX6_6.sce new file mode 100644 index 000000000..190c4b4ca --- /dev/null +++ b/3547/CH6/EX6.6/EX6_6.sce @@ -0,0 +1,40 @@ +// Example 6.6 +// Calculation of the single-pass gain and 3-dB bandwidth +// Page no 268 + +clc; +clear; +close; + +//Given data + +c1=3*10^8; // Velocity of light +f=7*10^9; // Cut off frequency +L=500*10^-6; // Input power +Gp=15; // Peak gain +n=3.2; +Gs=2.52; +R=0.32; +a=0.1024; +b=-0.6546; +c=1; + +// The single-pass gain + +x1 =( -1*b+ sqrt ((b ^2) -4*a*c)) /(2* a); // 1 s t r o o t +x2 =( -1*b- sqrt ((b ^2) -4*a*c)) /(2* a); // 2nd r o o t + +// The 3-dB bandwidth +G=10^(Gp/10); +x=(1-(R*x2))/(2*sqrt(R*x2)); +f=(c1/(%pi*L*n))*asin(x); +// f=f*10^-9; + +// Displaying results in the command window + +printf ( 'Single pass gain Gs= %0.2f or' , x1); +printf ( ' \n Single pass gain Gs= %0.2f ' , x2); +printf("\n The the 3-dB bandwidth = %0.2f GHz ",f*10^-9); + + +// The answers vary due to round off error -- cgit