From d36fc3b8f88cc3108ffff6151e376b619b9abb01 Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Fri, 12 May 2017 18:40:35 +0530 Subject: Revised list of TBCs --- .../KonasaniSai Dheeraj/sample(chapter.ipynb | 236 +++++++++++++++++++ .../KonasaniSai Dheeraj/sample(chapter_1).ipynb | 236 ------------------- .../KonasaniSai Dheeraj/sample_(chapter.ipynb | 256 +++++++++++++++++++++ .../KonasaniSai Dheeraj/sample_(chapter_6).ipynb | 256 --------------------- 4 files changed, 492 insertions(+), 492 deletions(-) create mode 100755 sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb delete mode 100755 sample_notebooks/KonasaniSai Dheeraj/sample(chapter_1).ipynb create mode 100755 sample_notebooks/KonasaniSai Dheeraj/sample_(chapter.ipynb delete mode 100755 sample_notebooks/KonasaniSai Dheeraj/sample_(chapter_6).ipynb (limited to 'sample_notebooks/KonasaniSai Dheeraj') diff --git a/sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb b/sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb new file mode 100755 index 00000000..cbbd7757 --- /dev/null +++ b/sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb @@ -0,0 +1,236 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 1 Survey of Units and Dimensions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_1 pgno:10" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force to accelerate = lbf 3.10810936815\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 = lbf\",F\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_2 pgno:11" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force to accelerate = lbf 10.0\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 = lbf\",F\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_3 pgno:11" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity = mph 60.0\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "v=88 #ft/s\n", + "#calculations\n", + "v2=v*3600./5280.\n", + "#results\n", + "print\"velocity = mph\",v2\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_4 pgno:12" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "velocity = mph 60.0\n" + ] + } + ], + "source": [ + "#Initialization of variables\n", + "v=88 #ft/s\n", + "#calculations\n", + "v2=v*1./5280*3600\n", + "#results\n", + "print\"velocity = mph\",v2\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_5 pgno:13" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Force without dimensions = lbm/ft sec 0.0005791302\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 = lbm/ft sec\",F2\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 1_6 pgno:14" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Density of water in this system = lbf/ft^2 1.93650754183\n", + "\n", + " Specific weight = lbf/ft^2 62.305\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 = lbf/ft^2\",gam\n", + "print\"\\n Specific weight = lbf/ft^2\",rho\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "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 +} diff --git a/sample_notebooks/KonasaniSai Dheeraj/sample(chapter_1).ipynb b/sample_notebooks/KonasaniSai Dheeraj/sample(chapter_1).ipynb deleted file mode 100755 index cbbd7757..00000000 --- a/sample_notebooks/KonasaniSai Dheeraj/sample(chapter_1).ipynb +++ /dev/null @@ -1,236 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 1 Survey of Units and Dimensions" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_1 pgno:10" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Force to accelerate = lbf 3.10810936815\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 = lbf\",F\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_2 pgno:11" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Force to accelerate = lbf 10.0\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 = lbf\",F\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_3 pgno:11" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "velocity = mph 60.0\n" - ] - } - ], - "source": [ - "#Initialization of variables\n", - "v=88 #ft/s\n", - "#calculations\n", - "v2=v*3600./5280.\n", - "#results\n", - "print\"velocity = mph\",v2\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_4 pgno:12" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "velocity = mph 60.0\n" - ] - } - ], - "source": [ - "#Initialization of variables\n", - "v=88 #ft/s\n", - "#calculations\n", - "v2=v*1./5280*3600\n", - "#results\n", - "print\"velocity = mph\",v2\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_5 pgno:13" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Force without dimensions = lbm/ft sec 0.0005791302\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 = lbm/ft sec\",F2\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 1_6 pgno:14" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Density of water in this system = lbf/ft^2 1.93650754183\n", - "\n", - " Specific weight = lbf/ft^2 62.305\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 = lbf/ft^2\",gam\n", - "print\"\\n Specific weight = lbf/ft^2\",rho\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "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 -} diff --git a/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter.ipynb b/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter.ipynb new file mode 100755 index 00000000..58372eed --- /dev/null +++ b/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter.ipynb @@ -0,0 +1,256 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 6 : FORMULAE" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6_1 pgno:69" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "expr=8*i-5\n", + "the number is 16\n" + ] + } + ], + "source": [ + " #8 times a number is decreased by 5 the result is 123\n", + "#let x be the number\n", + "\n", + "print'expr=8*i-5'\n", + "x=0;\n", + "for x in range(0,100):\n", + " if((8*x-5)==123):\n", + " print\"the number is \",x\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6_2 pgno:71" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "expr=(2*n+1)+(2*n+3)+(2*n+5)\n", + "n=%i \n", + "12\n", + "\n", + " the numbers are 199 201 203\n" + ] + } + ], + "source": [ + "#sum of 3 consecutive odd no.'s is 81\n", + "\n", + "#let the 3 consecutive odd numbers be 2n+1,2n+3,2n+5\n", + "\n", + "print\"expr=(2*n+1)+(2*n+3)+(2*n+5)\"\n", + "n=0;\n", + "for n in range(0,100):\n", + " if((2*n+1)+(2*n+3)+(2*n+5)==81):\n", + " print\"n=%i \\n\",n \n", + "\n", + "n1=2*n+1;\n", + "n2=2*n+3;\n", + "n3=2*n+5;\n", + "print\"\\n the numbers are \",n1,n2,n3\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6_3 pgno:72" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "p1=(6*x-5)\n", + "p2=(2*x+9)\n", + "p3=p1-p2\n", + "satisfies the equation \n" + ] + } + ], + "source": [ + "import numpy\n", + "print\"p1=(6*x-5)\"\n", + "p1=numpy.array([6, -5])\n", + "print\"p2=(2*x+9)\"\n", + "p2=numpy.array([2, 9])\n", + "print\"p3=p1-p2\"\n", + "p3=p1-p2\n", + "\n", + "x1=numpy.roots(p3)\n", + "left=6*x1-5; #check by substituion \n", + "right=2*x1+9;\n", + "if(left==right):\n", + "\tprint'satisfies the equation '\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6_4 pgno:73" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "x is a polynomial function\n", + "by the law of sighs roots are [ 3.]\n" + ] + } + ], + "source": [ + "print\"x is a polynomial function\"\n", + "import numpy\n", + "p1=numpy.array([3/5+1/2, 0])\n", + "p2=numpy.array([5/4, -3])\n", + "#p1=3*x/5+x/2;\n", + "#p2=5*x/4-3;\n", + "p3=p1-p2;\n", + "x=numpy.roots(p3) #by the law of signs\n", + "print\"by the law of sighs roots are\",x\n", + "\n", + "\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 6_5 pgno:75" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "p1=4*x-(x-2)/3\n", + "p2=5+(2*x+1)/4\n", + "p3=p1-p2\n", + "satisfies the equation \n" + ] + } + ], + "source": [ + "import numpy\n", + "print\"p1=4*x-(x-2)/3\"\n", + "p1=numpy.array([11/3, 2/3])\n", + "print\"p2=5+(2*x+1)/4\"\n", + "p2=numpy.array([1/2, 21/4])\n", + "print\"p3=p1-p2\"\n", + "p3=p1-p2\n", + "\n", + "x=numpy.roots(p3)\n", + "left=4*x-(x-2)/3; #check by substituion \n", + "right=5+(2*x+1)/4;\n", + "if(left != right):\n", + "\tprint'satisfies the equation '\n", + "\n", + "\n", + "\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "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 +} diff --git a/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter_6).ipynb b/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter_6).ipynb deleted file mode 100755 index 58372eed..00000000 --- a/sample_notebooks/KonasaniSai Dheeraj/sample_(chapter_6).ipynb +++ /dev/null @@ -1,256 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Chapter 6 : FORMULAE" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 6_1 pgno:69" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "expr=8*i-5\n", - "the number is 16\n" - ] - } - ], - "source": [ - " #8 times a number is decreased by 5 the result is 123\n", - "#let x be the number\n", - "\n", - "print'expr=8*i-5'\n", - "x=0;\n", - "for x in range(0,100):\n", - " if((8*x-5)==123):\n", - " print\"the number is \",x\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 6_2 pgno:71" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "expr=(2*n+1)+(2*n+3)+(2*n+5)\n", - "n=%i \n", - "12\n", - "\n", - " the numbers are 199 201 203\n" - ] - } - ], - "source": [ - "#sum of 3 consecutive odd no.'s is 81\n", - "\n", - "#let the 3 consecutive odd numbers be 2n+1,2n+3,2n+5\n", - "\n", - "print\"expr=(2*n+1)+(2*n+3)+(2*n+5)\"\n", - "n=0;\n", - "for n in range(0,100):\n", - " if((2*n+1)+(2*n+3)+(2*n+5)==81):\n", - " print\"n=%i \\n\",n \n", - "\n", - "n1=2*n+1;\n", - "n2=2*n+3;\n", - "n3=2*n+5;\n", - "print\"\\n the numbers are \",n1,n2,n3\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 6_3 pgno:72" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "p1=(6*x-5)\n", - "p2=(2*x+9)\n", - "p3=p1-p2\n", - "satisfies the equation \n" - ] - } - ], - "source": [ - "import numpy\n", - "print\"p1=(6*x-5)\"\n", - "p1=numpy.array([6, -5])\n", - "print\"p2=(2*x+9)\"\n", - "p2=numpy.array([2, 9])\n", - "print\"p3=p1-p2\"\n", - "p3=p1-p2\n", - "\n", - "x1=numpy.roots(p3)\n", - "left=6*x1-5; #check by substituion \n", - "right=2*x1+9;\n", - "if(left==right):\n", - "\tprint'satisfies the equation '\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 6_4 pgno:73" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "x is a polynomial function\n", - "by the law of sighs roots are [ 3.]\n" - ] - } - ], - "source": [ - "print\"x is a polynomial function\"\n", - "import numpy\n", - "p1=numpy.array([3/5+1/2, 0])\n", - "p2=numpy.array([5/4, -3])\n", - "#p1=3*x/5+x/2;\n", - "#p2=5*x/4-3;\n", - "p3=p1-p2;\n", - "x=numpy.roots(p3) #by the law of signs\n", - "print\"by the law of sighs roots are\",x\n", - "\n", - "\n" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Example 6_5 pgno:75" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "p1=4*x-(x-2)/3\n", - "p2=5+(2*x+1)/4\n", - "p3=p1-p2\n", - "satisfies the equation \n" - ] - } - ], - "source": [ - "import numpy\n", - "print\"p1=4*x-(x-2)/3\"\n", - "p1=numpy.array([11/3, 2/3])\n", - "print\"p2=5+(2*x+1)/4\"\n", - "p2=numpy.array([1/2, 21/4])\n", - "print\"p3=p1-p2\"\n", - "p3=p1-p2\n", - "\n", - "x=numpy.roots(p3)\n", - "left=4*x-(x-2)/3; #check by substituion \n", - "right=5+(2*x+1)/4;\n", - "if(left != right):\n", - "\tprint'satisfies the equation '\n", - "\n", - "\n", - "\n", - "\n", - "\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "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 -} -- cgit