summaryrefslogtreecommitdiff
path: root/Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-08-24 23:30:24 +0600
committerTrupti Kini2016-08-24 23:30:24 +0600
commit2e6cacc645c7aaaf848ea854843461f5bd589766 (patch)
treee348cd1aa9d4235edb12a6357a24b6295308bfe4 /Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb
parent6d761d4b1820e2b0e271f7ff8ee1e5da5814b07b (diff)
downloadPython-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.tar.gz
Python-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.tar.bz2
Python-Textbook-Companions-2e6cacc645c7aaaf848ea854843461f5bd589766.zip
Added(A)/Deleted(D) following books
A Principles_of_Physics_by_F.J.Bueche/Chapter10_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter10_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter11_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter13_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter15_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter16_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter17_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter18_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter19_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter1_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter1_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter20_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter21_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter22_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter23_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter24_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter25_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter26_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter27_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter2_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter2_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter3_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter3_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter4_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter4_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter5_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter5_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter6_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter6_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter7_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter7_2.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter8_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter9_1.ipynb A Principles_of_Physics_by_F.J.Bueche/Chapter9_2.ipynb A Principles_of_Physics_by_F.J.Bueche/chapter12_1.ipynb A Principles_of_Physics_by_F.J.Bueche/screenshots/11.2_1.png A Principles_of_Physics_by_F.J.Bueche/screenshots/24.4_1.png A Principles_of_Physics_by_F.J.Bueche/screenshots/8.4_1.png
Diffstat (limited to 'Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb')
-rw-r--r--Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb240
1 files changed, 240 insertions, 0 deletions
diff --git a/Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb b/Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb
new file mode 100644
index 00000000..a09a3d4b
--- /dev/null
+++ b/Principles_of_Physics_by_F.J.Bueche/Chapter14_1.ipynb
@@ -0,0 +1,240 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter 14:Sound"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.1:pg-623"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The speed of the sound in neon is v= 432.0 meters/sec\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_1\n",
+ "import math \n",
+ " #To find the speed of sound in neon\n",
+ "gama=1.66 #units in Constant\n",
+ "r=8314 #Units in J/Kmol\n",
+ "t=273 #Units in K\n",
+ "m=20.18 #Units in Kg/Kmol\n",
+ "v=math.sqrt((gama*r*t)/m) #Units in meters/sec\n",
+ "print \"The speed of the sound in neon is v=\",round(v),\" meters/sec\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.2:pg-625"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The sound level of the sound wave is= 70.0 dB\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_2\n",
+ "import math \n",
+ " #To find the sound level of a sound wave\n",
+ "i1=10**-5 #Units in W/meter**2\n",
+ "i2=10**-12 #Units in W/meter**2\n",
+ "level=10*math.log10(i1/i2) #units in dB\n",
+ "print \"The sound level of the sound wave is=\",round(level),\" dB\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.3:pg-625"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The intensity of sound is I=\n",
+ "3.16227766017e-09\n",
+ "W/meter**2\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_3\n",
+ "import math \n",
+ " #To find the intensity of sound\n",
+ "level=3.5 #Units in dB\n",
+ "i2=10**-12 #Units in W/meter**2\n",
+ "i=10**(level+math.log10(i2)) #Units in W/meter**2\n",
+ "print \"The intensity of sound is I=\"\n",
+ "print i\n",
+ "print \"W/meter**2\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.4:pg-626"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The distance it has to be moved is= 70.0 cm\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_4\n",
+ "import math\n",
+ " \n",
+ " #To find how far it has to be moved before the sound becomes weak\n",
+ "lamda=70 #units in cm\n",
+ "lamda1=0.5*lamda #Units in cm\n",
+ "print \"The distance it has to be moved is=\",round(lamda),\" cm\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.5:pg-627"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The frequency we hear is f= 531.0 Hz\n",
+ "\n",
+ "The frequency of the receding is f= 472.0 Hz\n",
+ "\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_5\n",
+ "import math \n",
+ " \n",
+ " #To find the frequency heard and the receding\n",
+ "f=500 #Units in Hz\n",
+ "vw=340.0 #Units in meters/sec\n",
+ "dist=20 #Units in meters/sec\n",
+ "f1=f*(vw/(vw-dist)) #Units in Hz\n",
+ "print \"The frequency we hear is f=\",round(f1),\" Hz\\n\"\n",
+ "f1=f*(vw/(vw+dist)) #Units in Hz\n",
+ "print \"The frequency of the receding is f=\",round(f1),\" Hz\\n\"\n"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex14.6:pg-628"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "The difference between the both frequencies is= 1667.0 Hz\n"
+ ]
+ }
+ ],
+ "source": [
+ " #Example 14_6\n",
+ "import math \n",
+ " #To find the difference between the frequency of wave reaching the officer and the car\n",
+ "fo=10**10 #Units in Hz\n",
+ "vw=3*10.0**8 #Units in meters/sec\n",
+ "vc=25 #Units in meters/sec\n",
+ "f1=fo*((vw+vc)/(vw-vc)) #Units in Hz\n",
+ "f1=f1-10**10 #Units in Hertz\n",
+ "print \"The difference between the both frequencies is=\",round(f1),\" Hz\"\n",
+ " #In text book answer printed wrong as 1670 Hz correct answer is 1666 Hz\n"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 2",
+ "language": "python",
+ "name": "python2"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 2
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython2",
+ "version": "2.7.11"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}