summaryrefslogtreecommitdiff
path: root/sample_notebooks/karansingh/ch1.ipynb
diff options
context:
space:
mode:
authorTrupti Kini2016-08-31 23:30:27 +0600
committerTrupti Kini2016-08-31 23:30:27 +0600
commita191ac160db1071c0a99ceb085f7bbc59a5124ef (patch)
tree29918e1cd708896259f866c3090f5a4c86521aac /sample_notebooks/karansingh/ch1.ipynb
parentd664b4cec7c9f6bec093c21e0e3f65e292d4a2bb (diff)
downloadPython-Textbook-Companions-a191ac160db1071c0a99ceb085f7bbc59a5124ef.tar.gz
Python-Textbook-Companions-a191ac160db1071c0a99ceb085f7bbc59a5124ef.tar.bz2
Python-Textbook-Companions-a191ac160db1071c0a99ceb085f7bbc59a5124ef.zip
Added(A)/Deleted(D) following books
A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png A Power_Electronics:_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter1_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter2_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter3_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter4_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter5_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter6_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter7_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter8_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/Chapter9_1.ipynb A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/1_1.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/2_1.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3.png A Power_Electronics_Principles_&_Applications_by_J_M_Jacob/screenshots/3_1.png A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter10_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter11_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter12_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter13_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter14_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter15_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter16_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter17_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter18_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter19_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter1_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter20_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter21_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter22_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter23_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter24_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter25_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter26_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter2_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter6_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter7_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter8_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_4.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/chapter9_5.ipynb A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter10_ac_load_line_4.png A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_4.png A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter18_clipping_ckt_output_5.png A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_4.png A Principles_of_Electronics_____by_V.K._Mehta_and_Rohit_Mehta/screenshots/chapter8_dc_load_line_5.png A sample_notebooks/AshvaniKumar/ch10.ipynb A sample_notebooks/MohdAsif/chapter1.ipynb A sample_notebooks/karansingh/ch1.ipynb
Diffstat (limited to 'sample_notebooks/karansingh/ch1.ipynb')
-rw-r--r--sample_notebooks/karansingh/ch1.ipynb227
1 files changed, 227 insertions, 0 deletions
diff --git a/sample_notebooks/karansingh/ch1.ipynb b/sample_notebooks/karansingh/ch1.ipynb
new file mode 100644
index 00000000..424c23f8
--- /dev/null
+++ b/sample_notebooks/karansingh/ch1.ipynb
@@ -0,0 +1,227 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Chapter1 - Survey Of Units And Dimensions"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.1 Pg: 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Force to accelerate = 3.108 lbf\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "gc=32.1739 #lbm ft/lbf s**2\n",
+ "m=10 #lbm\n",
+ "a=10 #ft/s**2\n",
+ "#calculations\n",
+ "F=m*a/gc\n",
+ "#results\n",
+ "print \"Force to accelerate = %.3f lbf\"%(F)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.2 Pg: 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Force to accelerate = 10 lbf\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "gc=32.1739 #lbm ft/lbf s**2\n",
+ "m=10 #lbm\n",
+ "a=gc #ft/s**2\n",
+ "#calculations\n",
+ "F=m*a/gc\n",
+ "#results\n",
+ "print \"Force to accelerate = %d lbf\"%(F)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.3 Pg: 19"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity = 60 mph\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "v=88 #ft/s\n",
+ "#calculations\n",
+ "v2=v*3600/5280\n",
+ "#results\n",
+ "print \"velocity = %d mph\"%(v2)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.4 Pg: 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "velocity = 0 mph\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "v=88 #ft/s\n",
+ "#calculations\n",
+ "v2=v*1/5280*3600\n",
+ "#results\n",
+ "print \"velocity = %d mph\"%(v2)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.5 Pg: 20"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Force without dimensions = 5.79e-04 lbm/ft sec\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "F=5e-9 #lbf/ft**2 hr\n",
+ "g=32.1739\n",
+ "#calculations\n",
+ "F2=F*3600*g\n",
+ "#results\n",
+ "print \"Force without dimensions = %.2e lbm/ft sec\"%(F2)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Ex:1.6 Pg: 21"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Density of water in this system = 1.937 lbf/ft**2\n",
+ "\n",
+ " Specific weight = 62.305 lbf/ft**2\n"
+ ]
+ }
+ ],
+ "source": [
+ "#Initialization of variables\n",
+ "rho=62.305 #lbf/ft**2\n",
+ "g=32.1739 #ft/s**2\n",
+ "#calculations\n",
+ "gam=rho/g\n",
+ "#results\n",
+ "print \"Density of water in this system = %.3f lbf/ft**2\"%(gam)\n",
+ "print \"\\n Specific weight = %.3f lbf/ft**2\"%(rho)"
+ ]
+ }
+ ],
+ "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.9"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 0
+}