diff options
author | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
---|---|---|
committer | Thomas Stephen Lee | 2015-08-28 16:53:23 +0530 |
commit | db0855dbeb41ecb8a51dde8587d43e5d7e83620f (patch) | |
tree | b95975d958cba9af36cb1680e3f77205354f6512 /Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb | |
parent | 5a86a20b9de487553d4ef88719fb0fd76a5dd6a7 (diff) | |
download | Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.gz Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.tar.bz2 Python-Textbook-Companions-db0855dbeb41ecb8a51dde8587d43e5d7e83620f.zip |
add books
Diffstat (limited to 'Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb')
-rwxr-xr-x | Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb b/Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb new file mode 100755 index 00000000..f6794e5d --- /dev/null +++ b/Oscillations_and_Waves_by_S._Prakash/chapter11.ipynb @@ -0,0 +1,143 @@ +{ + "metadata": { + "name": "", + "signature": "" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 11, Lissajous' Figures " + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1, page 448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Frequencies\n", + "#given data :\n", + "t=2.0 # in sec\n", + "n1=100.0 # in vibrations/sec\n", + "n2a=n1+(1/t) \n", + "n2b=n1-(1/t) \n", + "print \"Frequency, n2a = %0.2f \" %n2a\n", + "print \"frequency, n2b = %0.2f \"%n2b" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency, n2a = 100.50 \n", + "frequency, n2b = 99.50 \n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2, page 448" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "# Frequencies\n", + "#given data :\n", + "t1=15 # in sec\n", + "t2=10 # in sec\n", + "n2=400 # in vibrations/sec\n", + "n1a=n2+(1/t1) \n", + "n1b=n2-(1/t1) \n", + "print \"Frequency, n1a = %0.2f Hz \" %n1a\n", + "print \"Frequency, n1b = %0.2f Hz \" %n1b\n", + "n_1a=n2+(1/t2) \n", + "n_1b=n2-(1/t2) \n", + "print \"Frequency, n_1a = %0.2f Hz \" %n_1a\n", + "print \"Frequency, n_1b = %0.2f Hz \" %n_1b" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency, n1a = 400.07 Hz \n", + "Frequency, n1b = 399.93 Hz \n", + "Frequency, n_1a = 400.10 Hz \n", + "Frequency, n_1b = 399.90 Hz \n" + ] + } + ], + "prompt_number": 6 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3, page 449" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "# Frequencies\n", + "#given data :\n", + "t1=15 # in sec\n", + "t2=10 # in sec\n", + "n2=256 # in vibrations/sec\n", + "n1a=(2*n2)+(1/t1) \n", + "n1b=(2*n2)-(1/t1) \n", + "print \"Frequency, n1a = %0.2f Hz \" %n1a\n", + "print \"Frequency, n1b = %0.2f Hz \" %n1b\n", + "n_1a=(2*n2)+(1/t2) \n", + "n_1b=(2*n2)-(1/t2) \n", + "print \"Frequency, n_1a = %0.2f Hz \" %n_1a\n", + "print \"Frequency, n_1b = %0.2f Hz \" %n_1b" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Frequency, n1a = 512.07 Hz \n", + "Frequency, n1b = 511.93 Hz \n", + "Frequency, n_1a = 512.10 Hz \n", + "Frequency, n_1b = 511.90 Hz \n" + ] + } + ], + "prompt_number": 7 + } + ], + "metadata": {} + } + ] +} |