summaryrefslogtreecommitdiff
path: root/backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:53:46 +0530
committerkinitrupti2017-05-12 18:53:46 +0530
commit6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch)
tree22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb
parentd36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff)
downloadPython-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip
Removed duplicates
Diffstat (limited to 'backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb')
-rwxr-xr-xbackup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb143
1 files changed, 0 insertions, 143 deletions
diff --git a/backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb b/backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb
deleted file mode 100755
index 19fc26f8..00000000
--- a/backup/Principles_of_Physics_by_F.J.Bueche_version_backup/Chapter21.ipynb
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "# Chapter 21: Elecromagnetics"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Ex21.1:pg-1037"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 1,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The Wavelength of the Electromagnetic wave is lamda= 294.0 meters\n"
- ]
- }
- ],
- "source": [
- " #Example 21_1\n",
- " \n",
- " \n",
- " #To find the wavelength of the electromagnetic wave\n",
- "v=3*10.0**8 #Units in meters/sec\n",
- "f=1.02*10**6 #Units in Hz\n",
- "lamda=v/f #Units in Meters\n",
- "print \"The Wavelength of the Electromagnetic wave is lamda=\",round(lamda),\" meters\"\n"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Ex21.2:pg-1038"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 2,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The value of the magnetic field is Bo=\n",
- "1.4e-11\n",
- "T\n"
- ]
- }
- ],
- "source": [
- " #Example 21_2\n",
- " \n",
- " \n",
- " #To find the value of magnetic field\n",
- "eo=4.2*10**-3 #units in V/m\n",
- "c=3*10**8 #Units in meters/sec\n",
- "bo=eo/c #Units in T\n",
- "print \"The value of the magnetic field is Bo=\"\n",
- "print bo\n",
- "print \"T\"\n"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Ex21.3:pg-1039"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 6,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "The value of Eo= 0.02448 N/C\n",
- " The value of Bo= 8.16124749653e-11\n",
- "T\n"
- ]
- }
- ],
- "source": [
- " #Example 21_3\n",
- "import math \n",
- " #To find the values of Eo and Bo in the wave\n",
- "power=1000 #Units in W\n",
- "r=10000 #units in meters\n",
- "area=4*math.pi*r**2 #units in meter**2\n",
- "P_a=power/area #unts in W/meter**2\n",
- "c=3*10**8 #units in meters/sec\n",
- "eeo=8.85*10**-12 #units in C**2/N*meter**2\",round( ,5),\" \n",
- "eo=math.sqrt((2*P_a)/(c*eeo)) #units in N/C\n",
- "bo=eo/c #Units in T\n",
- "print \"The value of Eo=\",round(eo,5),\" N/C\\n The value of Bo=\",\n",
- "print bo\n",
- "print \"T\"\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
-}