summaryrefslogtreecommitdiff
path: root/Antenna_and_Wave_Propagation_by_S._Wali/chapter1.ipynb
blob: b8295615e6f304795e81247cd74916466eb26093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
 "metadata": {
  "name": "",
  "signature": "sha256:37d7c9e86e6a81ee7eb6a2dbfc73df70c3266a2471b35c7c536efad1cc61aa82"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter1, Review of Electromagnetics and Transmission Lines"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example No. 1.1.1, page 1-3"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "f1=100 #kHz\n",
      "f2=1 #MHz\n",
      "f3=10 #MHz\n",
      "c=3*10**8 #m/s\n",
      "lamda1=c/(f1*10**3) #m\n",
      "lamda2=c/(f2*10**6) #m\n",
      "lamda3=c/(f3*10**6) #m\n",
      "print \"At 100kHz, wavelength = %0.f km \" %(lamda1/1000) \n",
      "print \"At 1MHz, wavelength = %0.f m \" %lamda2 \n",
      "print \"At 10MHz, wavelength = %0.f m \"%lamda3"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "At 100kHz, wavelength = 3 km \n",
        "At 1MHz, wavelength = 300 m \n",
        "At 10MHz, wavelength = 30 m \n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}