diff options
author | hardythe1 | 2015-07-03 12:23:43 +0530 |
---|---|---|
committer | hardythe1 | 2015-07-03 12:23:43 +0530 |
commit | 5a86a20b9de487553d4ef88719fb0fd76a5dd6a7 (patch) | |
tree | db67ac5738a18b921d9a8cf6e86f402703f30bdf /Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb | |
parent | 37d315828bbfc0f5cabee669d2b9dd8cd17b5154 (diff) | |
download | Python-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.tar.gz Python-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.tar.bz2 Python-Textbook-Companions-5a86a20b9de487553d4ef88719fb0fd76a5dd6a7.zip |
add/remove books
Diffstat (limited to 'Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb')
-rwxr-xr-x | Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb | 231 |
1 files changed, 231 insertions, 0 deletions
diff --git a/Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb b/Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb new file mode 100755 index 00000000..8429c7fb --- /dev/null +++ b/Wireless_Communications_by_T._L._Singal/CHAPTER8.ipynb @@ -0,0 +1,231 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b380d0b5ef5988f7e443e226b65a3140dbdac6a491db60a3303ae9eccfb37838"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "CHAPTER 8 - Multiple Access Techniques"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.1 - PG NO.253"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no. 253\n",
+ "import math\n",
+ "Y=2.#prpogation path-loss exponent\n",
+ "r2=10.**3.\n",
+ "r1=10.\n",
+ "delPr=20.*math.log10(r2/r1)**2.#log(r2/r1)*20dB/decade\n",
+ "print '%s %d %s' %('difference between the recieved signal strength is =',delPr,'dB')\n",
+ "imp=delPr+20#impact\n",
+ "print '%s %d %s' %('effect of shadow fading causes difference between the recieved signal strength to exceed to',imp,'dB')\n",
+ "outrad=40#out of bound radiations\n",
+ "print '%s %d %s' %('IMPACT is out-of-bound radiations exceeds the desired signal strength by',imp-outrad,'dB')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "difference between the recieved signal strength is = 80 dB\n",
+ "effect of shadow fading causes difference between the recieved signal strength to exceed to 100 dB\n",
+ "IMPACT is out-of-bound radiations exceeds the desired signal strength by 60 dB\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.3 - PG NO.255"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no.255\n",
+ "Bt=12.5*10.**6.\n",
+ "Bg=10.**3.\n",
+ "Bc=30.*10.**3.\n",
+ "N=(Bt-2.*Bg)/Bc#no. of channels\n",
+ "print'%s %d %s' %('no. of channels available in an FDMA system is',N,'channels')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "no. of channels available in an FDMA system is 416 channels\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.4 - PG NO.256"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no. 256\n",
+ "TS=5.*10.**6.#total spectrum\n",
+ "CBW=25000.#bandwidth (channel)\n",
+ "ns=TS/CBW\n",
+ "nspd=2.\n",
+ "nd=ns/nspd#Number of simultaneous calls\n",
+ "print'%s %d %s' %('Number of simultaneous calls=',nd,'calls')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of simultaneous calls= 100 calls\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.5 - PG NO.259"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no. 259\n",
+ "Bt=25.*10.**6.#allocated spectrum\n",
+ "Bc=200.*10.**3.#channel bandwidth\n",
+ "Bg=0.#no guard band\n",
+ "m=8.#no. of speech channels\n",
+ "N=m*(Bt-2.*Bg)/Bc\n",
+ "print'%s %d' %('no. of simultaneous subscribers a GSM system can accommodate is =',N )\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "no. of simultaneous subscribers a GSM system can accommodate is = 1000\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.7 - PG NO.263"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no. 263\n",
+ "N=156.25#total bits\n",
+ "nov=40.25#overhead bits\n",
+ "FReff=(1.-nov/N)*100.#frame efficiency\n",
+ "print'%s %.1f %s' %('the frame efficiency is',FReff,'%')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "the frame efficiency is 74.2 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "EXAMPLE 8.11 - PG NO.285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#page no. 285\n",
+ "import math\n",
+ "TDR=1.*10.**6.\n",
+ "G=0.5\n",
+ "SmaxALOHA=G*math.e**(-2.*G)*TDR# throughput\n",
+ "print'%s %d %s' %('max. throughput of ALOHA with large no.of subscibers with transmission rate of 1Mbps is =',round(SmaxALOHA*10**(-3)),'kbps')\n",
+ "\n",
+ "Stdma=100/100*TDR\n",
+ "print'%s %.f %s' %('throughput of a TDMA network with transmission rate of 1Mbps is =',Stdma*10**(-6),'Mbps')\n",
+ "\n",
+ "Saloha=TDR\n",
+ "print'%s %.f %s' %('throughput of ALOHA with 1 subsciber with transmission rate of 1Mbps =',Saloha*10**(-6),'Mbps')\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "max. throughput of ALOHA with large no.of subscibers with transmission rate of 1Mbps is = 184 kbps\n",
+ "throughput of a TDMA network with transmission rate of 1Mbps is = 1 Mbps\n",
+ "throughput of ALOHA with 1 subsciber with transmission rate of 1Mbps = 1 Mbps\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |