diff options
author | kinitrupti | 2017-05-12 18:40:35 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:40:35 +0530 |
commit | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch) | |
tree | 9806b0d68a708d2cfc4efc8ae3751423c56b7721 /sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb | |
parent | 1b1bb67e9ea912be5c8591523c8b328766e3680f (diff) | |
download | Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2 Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip |
Revised list of TBCs
Diffstat (limited to 'sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb')
-rwxr-xr-x | sample_notebooks/KonasaniSai Dheeraj/sample(chapter.ipynb | 236 |
1 files changed, 236 insertions, 0 deletions
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
+}
|