diff options
Diffstat (limited to '3809/CH13')
-rw-r--r-- | 3809/CH13/EX13.1/EX13_1.sce | 19 | ||||
-rw-r--r-- | 3809/CH13/EX13.2/EX13_2.sce | 19 | ||||
-rw-r--r-- | 3809/CH13/EX13.3/EX13_3.sce | 17 | ||||
-rw-r--r-- | 3809/CH13/EX13.4/EX13_4.sce | 19 | ||||
-rw-r--r-- | 3809/CH13/EX13.5/EX13_5.sce | 20 | ||||
-rw-r--r-- | 3809/CH13/EX13.6/EX13_6.sce | 12 |
6 files changed, 106 insertions, 0 deletions
diff --git a/3809/CH13/EX13.1/EX13_1.sce b/3809/CH13/EX13.1/EX13_1.sce new file mode 100644 index 000000000..c4d8451a1 --- /dev/null +++ b/3809/CH13/EX13.1/EX13_1.sce @@ -0,0 +1,19 @@ +//Chapter 13, Example 13.1 + +clc +//Initialisation' +ri=10**3 //resistance in ohm +rs=100 //resistance in ohm +rl=50 //resistance in ohm +ro=10 //resistance in ohm +vs=2 //voltage +ao=10 //output gain + +//Calculation +vi=(ri/(rs+ri))*vs //input voltage +vo=ao*vi*(rl/(ro+rl)) //output voltage + + +//Results +printf("Output Voltage = %.2f V",vo) + diff --git a/3809/CH13/EX13.2/EX13_2.sce b/3809/CH13/EX13.2/EX13_2.sce new file mode 100644 index 000000000..17b4c2e47 --- /dev/null +++ b/3809/CH13/EX13.2/EX13_2.sce @@ -0,0 +1,19 @@ +//Chapter 13, Example 13.2 + +clc +//Initialisation' +ri=10**3 //resistance in ohm +rs=100 //resistance in ohm +rl=50 //resistance in ohm +ro=10 //resistance in ohm +vs=2 //voltage +ao=10 //output gain + +//Calculation +vi=(ri/(rs+ri))*vs //input voltage +vo=ao*vi*(rl/(ro+rl)) //output voltage +av=vo/vi //voltage gain + +//Results +printf("Voltage Gain Av = %.2f",av) + diff --git a/3809/CH13/EX13.3/EX13_3.sce b/3809/CH13/EX13.3/EX13_3.sce new file mode 100644 index 000000000..61ad3b770 --- /dev/null +++ b/3809/CH13/EX13.3/EX13_3.sce @@ -0,0 +1,17 @@ +//Chapter 13, Example 13.3 + +clc +//Initialisation' +rl=50 //resistance in ohm +ro=0 //resistance in ohm +vs=2 //voltage +ao=10 //output gain + +//Calculation +vi=vs //input voltage +vo=ao*vi*(rl/(ro+rl)) //output voltage + + +//Results +printf("Output Voltage = %.2f V",vo) + diff --git a/3809/CH13/EX13.4/EX13_4.sce b/3809/CH13/EX13.4/EX13_4.sce new file mode 100644 index 000000000..4580066df --- /dev/null +++ b/3809/CH13/EX13.4/EX13_4.sce @@ -0,0 +1,19 @@ +//Chapter 13, Example 13.1 + +clc +//Initialisation' +ri=10**3 //resistance in ohm +rs=100 //resistance in ohm +rl=50 //resistance in ohm +ro=10 //resistance in ohm +vs=2 //voltage +ao=10 //output gain + +//Calculation +vi=(ri/(rs+ri))*vs //input voltage +vo=ao*vi*(rl/(ro+rl)) //output voltage +po=vo**2/rl //output power in watt + +//Results +printf("Output Power = %.1f W",po) + diff --git a/3809/CH13/EX13.5/EX13_5.sce b/3809/CH13/EX13.5/EX13_5.sce new file mode 100644 index 000000000..b2c5e87e2 --- /dev/null +++ b/3809/CH13/EX13.5/EX13_5.sce @@ -0,0 +1,20 @@ +//Chapter 13, Example 13.5 + +clc +//Initialisation +ri=1000 //resistance in ohm +rl=50 //resistance in ohm +vi=1.82 //input voltage +vo=15.2 //output voltage + + + +//Calculation + +po=vo**2/rl //output power in watt +pi=vi**2/ri //input power in watt +ap1=po/pi //power gain + +//Results +printf("Power Gain, Ap = %d",ap1) + diff --git a/3809/CH13/EX13.6/EX13_6.sce b/3809/CH13/EX13.6/EX13_6.sce new file mode 100644 index 000000000..eff4bf39c --- /dev/null +++ b/3809/CH13/EX13.6/EX13_6.sce @@ -0,0 +1,12 @@ +//Chapter 13, Example 13.6 + +clc +//Initialisation' +p=1400 //power gain + +//Calculation +pdb=10*log10(p) //power gain in dB + +//Results +printf("Power Gain (dB) = %.1f dB",pdb) + |