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 /2681/CH5 | |
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 '2681/CH5')
-rwxr-xr-x | 2681/CH5/EX5.1/Ex5_1.sce | 8 | ||||
-rwxr-xr-x | 2681/CH5/EX5.10/Ex5_10.sce | 15 | ||||
-rwxr-xr-x | 2681/CH5/EX5.11/Ex5_11.sce | 8 | ||||
-rwxr-xr-x | 2681/CH5/EX5.2/Ex5_2.sce | 9 | ||||
-rwxr-xr-x | 2681/CH5/EX5.3/Ex5_3.sce | 9 | ||||
-rwxr-xr-x | 2681/CH5/EX5.4/Ex5_4.sce | 11 | ||||
-rwxr-xr-x | 2681/CH5/EX5.5/Ex5_5.sce | 8 | ||||
-rwxr-xr-x | 2681/CH5/EX5.6/Ex5_6.sce | 9 | ||||
-rwxr-xr-x | 2681/CH5/EX5.7/Ex5_7.sce | 10 | ||||
-rwxr-xr-x | 2681/CH5/EX5.8/Ex5_8.sce | 9 | ||||
-rwxr-xr-x | 2681/CH5/EX5.9/Ex5_9.sce | 9 |
11 files changed, 105 insertions, 0 deletions
diff --git a/2681/CH5/EX5.1/Ex5_1.sce b/2681/CH5/EX5.1/Ex5_1.sce new file mode 100755 index 000000000..34f9f3f5c --- /dev/null +++ b/2681/CH5/EX5.1/Ex5_1.sce @@ -0,0 +1,8 @@ +//Zo of a two wire transmission line
+//given
+clc
+L=1D-3//H/Km
+C=0.25D-6//F/Km
+Zo=sqrt(L/C)//ohm
+Zo=round(Zo*100)/100///rounding off decimalssc
+disp(Zo,'the Zo for two wire transmission line in ohm:')//ohm
diff --git a/2681/CH5/EX5.10/Ex5_10.sce b/2681/CH5/EX5.10/Ex5_10.sce new file mode 100755 index 000000000..1204f24df --- /dev/null +++ b/2681/CH5/EX5.10/Ex5_10.sce @@ -0,0 +1,15 @@ +//voltage standing wave ratio
+//given
+clc
+clear
+format
+Vr=0.37//volts
+Vi=1//volts
+row=Vr/Vi
+if(row>=0)
+VSWR=(1+row)/(1-row)
+VSWR=round(VSWR*10)/10///rounding off decimals
+disp(VSWR,'THE voltage standing wave ratio is:')
+else
+disp('not possible')
+end
diff --git a/2681/CH5/EX5.11/Ex5_11.sce b/2681/CH5/EX5.11/Ex5_11.sce new file mode 100755 index 000000000..e91b2d3a7 --- /dev/null +++ b/2681/CH5/EX5.11/Ex5_11.sce @@ -0,0 +1,8 @@ +//magnitude of the reflection coefficent
+//given
+clc
+zl=10*%i//ohm
+z0=100//ohm
+row=(zl-z0)/(zl+z0)//reflection coefficent
+mag_row=norm(row)//magnitude of reflection coefficent
+disp(mag_row,'the magnitude of the reflection coefficent:')
diff --git a/2681/CH5/EX5.2/Ex5_2.sce b/2681/CH5/EX5.2/Ex5_2.sce new file mode 100755 index 000000000..097d0004a --- /dev/null +++ b/2681/CH5/EX5.2/Ex5_2.sce @@ -0,0 +1,9 @@ +//Zo of a transmission line
+//given
+clc
+epsilon_r=1//assume as 1 according to question
+s=0.49//cm
+d=0.1//cm
+Zo=(276/sqrt(epsilon_r))*log10((2*s)/d)
+Zo=round(Zo*100)/100///rounding off decimals
+disp(Zo,'the Zo of a transmission line is given in ohm as follows:')//ohm
diff --git a/2681/CH5/EX5.3/Ex5_3.sce b/2681/CH5/EX5.3/Ex5_3.sce new file mode 100755 index 000000000..62102b00e --- /dev/null +++ b/2681/CH5/EX5.3/Ex5_3.sce @@ -0,0 +1,9 @@ +//wavelength in coaxial line
+//given
+clc
+V0=3D+8//m/s
+f=8D+9//hertz
+epsilon_r=2.25
+lem=V0/((sqrt(epsilon_r))*f)//meter
+disp(lem,'the wave length for the operating frequency of 8GHz in meter:')
+//error in the form of miscalculation
diff --git a/2681/CH5/EX5.4/Ex5_4.sce b/2681/CH5/EX5.4/Ex5_4.sce new file mode 100755 index 000000000..daa5f1231 --- /dev/null +++ b/2681/CH5/EX5.4/Ex5_4.sce @@ -0,0 +1,11 @@ +//frequency of air dielectric and highest frequency
+//given
+clc
+n=1//lowest mode
+d=2.6//mm
+D=0.8//mm
+V0=3d+11//mm/s//ERROR
+lem_c=(%pi/(2*n))*(d+D)
+fc=V0/lem_c//hertz//ERROR
+disp(fc,'the frequency is as follows:')//Hz
+//ERROR in the calculation in the book as value of V0=3d+10
diff --git a/2681/CH5/EX5.5/Ex5_5.sce b/2681/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..97471a78e --- /dev/null +++ b/2681/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,8 @@ +//Zo of the coaxial cable
+//given
+clc
+epsilon_r=2.25
+Dbyd=2.25
+Zo=(138/sqrt(epsilon_r))*log10(Dbyd)//ohm
+Zo=round(Zo*1000)/1000///rounding off decimals
+disp(Zo,'the Zo for the given coaxial cable is :')//ohm
diff --git a/2681/CH5/EX5.6/Ex5_6.sce b/2681/CH5/EX5.6/Ex5_6.sce new file mode 100755 index 000000000..b0f058a7e --- /dev/null +++ b/2681/CH5/EX5.6/Ex5_6.sce @@ -0,0 +1,9 @@ +//output power of cable
+//given
+clc
+alpha=0.28//db/m//attenuation
+alpha_50m=0.28*50//db//attenutaion of 50 m cable
+pi=0.4//watt//input power//ERROR
+po=pi/(10^((alpha_50m)/10))//watt//output power
+disp(po*1000,'the output power of 50m in mW ')//mW
+//ERROR in calculation of the book as pi=0.04
diff --git a/2681/CH5/EX5.7/Ex5_7.sce b/2681/CH5/EX5.7/Ex5_7.sce new file mode 100755 index 000000000..c12dd10cc --- /dev/null +++ b/2681/CH5/EX5.7/Ex5_7.sce @@ -0,0 +1,10 @@ +//percentage of reflected power
+//given
+Vi=20//volts//incident voltage
+Vr=12.5//volts//reflected voltage
+row=Vr/Vi//reflected voltage coefficent
+row2=row^2//reflected_power/incident_power
+pi=1//watt
+pr=0.391*1
+%pr=pr*100//percentage power
+disp(%pr,'the percentage of reflected power is:')
diff --git a/2681/CH5/EX5.8/Ex5_8.sce b/2681/CH5/EX5.8/Ex5_8.sce new file mode 100755 index 000000000..11174cc58 --- /dev/null +++ b/2681/CH5/EX5.8/Ex5_8.sce @@ -0,0 +1,9 @@ +//voltage standing wave ratio
+//given
+clc
+Vmax=5//volts
+Vmin=3//volts
+VSWR=Vmax/Vmin//voltage standing wave ratio
+VSWR_S=20*log10(VSWR)//VSWR IN db
+VSWR_S=round(VSWR_S*100)/100///rounding off decimals
+disp(VSWR_S,'THE voltage standing wave ratio in db:')//decibles
diff --git a/2681/CH5/EX5.9/Ex5_9.sce b/2681/CH5/EX5.9/Ex5_9.sce new file mode 100755 index 000000000..4d0fdfe3f --- /dev/null +++ b/2681/CH5/EX5.9/Ex5_9.sce @@ -0,0 +1,9 @@ +//VSWR FOR LOAD impedence
+//given
+clc
+Zo=100
+Zl1=50
+Zl2=125
+VSWR=Zo/Zl1//for Zo>Zl
+VSWR_1=Zl2/Zo//for Zo<Zl
+disp(VSWR_1,VSWR,'THE voltage standing wave ratio for each case:')
|