summaryrefslogtreecommitdiff
path: root/Oscillations_and_Waves_by_S._Prakash/chapter4.ipynb
blob: 062db23cc61153b6bcb236bda007ca81e4ae4cac (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
{
 "metadata": {
  "name": "",
  "signature": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 4, Coupled oscillators"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2, page 195"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from __future__ import division\n",
      "# ratio of  Frequency\n",
      "k=1 #assume\n",
      "m1=16 #a.m.u\n",
      "m2=12 #a.m.u\n",
      "m3=m1 #\n",
      "rt=((m2+2*m1)/m2)**(1/2) #\n",
      "print \"Ratio of frequency = %0.2f \" %rt"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Ratio of frequency = 1.91 \n"
       ]
      }
     ],
     "prompt_number": 1
    }
   ],
   "metadata": {}
  }
 ]
}